summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarren Smith <garren.smith@gmail.com>2013-08-19 16:38:06 +0200
committerGarren Smith <garren.smith@gmail.com>2013-08-19 17:03:22 +0200
commite74f3bae54f82204a3a4acfc4a5b5c1f941b4943 (patch)
treeebd48af6751bf42af0609cae3afed515d4fc04bc
parent30280d622472f5bcb641502acf3d4ae0555cdae8 (diff)
downloadcouchdb-e74f3bae54f82204a3a4acfc4a5b5c1f941b4943.tar.gz
Fauxton: fix pretty print issue by escaping json
-rw-r--r--src/fauxton/app/templates/documents/all_docs_item.html2
-rw-r--r--src/fauxton/app/templates/documents/doc.html2
-rw-r--r--src/fauxton/app/templates/documents/index_row_docular.html4
-rw-r--r--src/fauxton/app/templates/documents/index_row_tabular.html2
4 files changed, 5 insertions, 5 deletions
diff --git a/src/fauxton/app/templates/documents/all_docs_item.html b/src/fauxton/app/templates/documents/all_docs_item.html
index c4c075409..c0e61cf76 100644
--- a/src/fauxton/app/templates/documents/all_docs_item.html
+++ b/src/fauxton/app/templates/documents/all_docs_item.html
@@ -15,7 +15,7 @@ the License.
<td class="select"><input type="checkbox" class="row-select"></td>
<td>
<div>
- <pre class="prettyprint"><%= doc.prettyJSON() %></pre>
+ <pre class="prettyprint"><%- doc.prettyJSON() %></pre>
<% if (doc.isEditable()) { %>
<div class="btn-group">
<a href="#<%= doc.url('app') %>" class="btn btn-small edits">Edit <%= doc.docType() %></a>
diff --git a/src/fauxton/app/templates/documents/doc.html b/src/fauxton/app/templates/documents/doc.html
index 92c29ff57..81c74c4bc 100644
--- a/src/fauxton/app/templates/documents/doc.html
+++ b/src/fauxton/app/templates/documents/doc.html
@@ -32,7 +32,7 @@ the License.
</div>
<% } %>
- <textarea class="doc-code"><%= JSON.stringify(doc.attributes, null, " ") %></textarea>
+ <textarea class="doc-code"><%- JSON.stringify(doc.attributes, null, " ") %></textarea>
<br />
<p>
<button class="save-doc button" type="button">Save</button>
diff --git a/src/fauxton/app/templates/documents/index_row_docular.html b/src/fauxton/app/templates/documents/index_row_docular.html
index 26c0280d9..383545359 100644
--- a/src/fauxton/app/templates/documents/index_row_docular.html
+++ b/src/fauxton/app/templates/documents/index_row_docular.html
@@ -15,7 +15,7 @@ the License.
<td class="select"><input type="checkbox"></td>
<td>
<div>
- <pre class="prettyprint"><%= doc.prettyJSON() %></pre>
+ <pre class="prettyprint"><%- doc.prettyJSON() %></pre>
<% if (doc.isEditable()) { %>
<div class="btn-group">
<a href="#<%= doc.url('app') %>" class="btn btn-small edits">Edit <%= doc.docType() %></a>
@@ -23,4 +23,4 @@ the License.
</div>
<% } %>
</div>
-</td> \ No newline at end of file
+</td>
diff --git a/src/fauxton/app/templates/documents/index_row_tabular.html b/src/fauxton/app/templates/documents/index_row_tabular.html
index f52c48cb6..f211f9eb0 100644
--- a/src/fauxton/app/templates/documents/index_row_tabular.html
+++ b/src/fauxton/app/templates/documents/index_row_tabular.html
@@ -22,4 +22,4 @@ the License.
<div>
<pre class="prettyprint"><%= JSON.stringify(doc.get("value")) %></pre>
</div>
-</td> \ No newline at end of file
+</td>