Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[fix] Escape HTML in examples

  • Loading branch information...
commit e4b5f712da6a8ffdbc46ed8c02690ca0684654f9 1 parent ba1c288
Maciej Małecki mmalecki authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 public/index.html
6 public/index.html
View
@@ -352,7 +352,7 @@ <h2 class="green">Templating with <span class="name">Plates</span></h2>
</p>
<div class="panel">
<pre class="syntax">
-var html = '<span class="name">User</span>...<span class="name">User</span>';
+var html = '&lt;span class="name"&gt;User&lt;/span&gt;...&lt;span class="name"&gt;User&lt;/span&gt;';
var data = { "username": "John Smith" };
var map = plates.Map();
@@ -367,7 +367,7 @@ <h2 class="green">Templating with <span class="name">Plates</span></h2>
</p>
<div class="panel">
<pre class="syntax">
-var html = '<a href="/"></a>';
+var html = '&lt;a href="/"&gt;&lt;/a&gt;';
var data = { "newurl": "http://www.nodejitsu.com" };
var map = plates.Map();
@@ -382,7 +382,7 @@ <h2 class="green">Templating with <span class="name">Plates</span></h2>
</p>
<div class="panel">
<pre class="syntax">
-var html = '<a href="/"></a>';
+var html = '&lt;a href="/"&gt;&lt;/a&gt;';
var data = { "imageurl": "http://www.nodejitsu.com" };
var map = plates.Map();
Please sign in to comment.
Something went wrong with that request. Please try again.