You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Content of <script> tags is escaped when they are inside html tags and 'sanitize: false' #257
then content of <script> will be escaped. But content remains unescaped if <script> is not surrounded with html:
<script>if(5>4){}</script>
If here we just set pre: true then content of <script> within html will not be escaped as expected. Is it a bug or a feature, and how can I force marked.js to not escape content of <script> within html?
Activity
timoxley commentedon Nov 10, 2013
👍
pixelkritzel commentedon Aug 9, 2015
+1
I'm using marked as part of an styleguide generator and need to embed script tags in HTML. Is there an option to deactivate this kind of behaviour?
pixelkritzel commentedon Aug 9, 2015
And hopefully I found a solution for my case. I have to see, if there will be some unforseen consequences. But I set the
pedanticoption to true.