Skip to content

Commit

Permalink
Updating HTML for script placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
ErisDS committed Jul 31, 2014
1 parent b7bfc35 commit 687197b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/client/helpers/gh-format-html.js
Expand Up @@ -6,9 +6,9 @@ var formatHTML = Ember.Handlebars.makeBoundHelper(function (html) {

// replace script and iFrame
escapedhtml = escapedhtml.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
'<pre><code>Embedded JavaScript</code></pre>');
'<pre class="js-embed-placeholder">Embedded JavaScript</pre>');
escapedhtml = escapedhtml.replace(/<iframe\b[^<]*(?:(?!<\/iframe>)<[^<]*)*<\/iframe>/gi,
'<pre><code>Embedded IFrame</code></pre>');
'<pre class="iframe-embed-placeholder">Embedded iFrame</pre>');

// sanitize HTML
escapedhtml = html_sanitize(escapedhtml, cajaSanitizers.url, cajaSanitizers.id);
Expand Down

0 comments on commit 687197b

Please sign in to comment.