redmine_highlightjs
redmine_highlightjs copied to clipboard
Fix highlighting xml/html code by escaping html characters
Here is bug, no escape html characters:
After fix:
This related to #18, #21, #26 Issues
This is not a proper fix. You should check file extension and language given
This is a common problem for html-like tags inside any language preformatted text. For example if I post the next:
<pre><code class="ruby">
some_string = "start <b>ddd</b>"
</code></pre>
I got the next result:
And with escaping suggested in this pull request:
You're right. The fix is very ok. I haven't thought about HTML hidden in ruby string constant. :)