rainbow icon indicating copy to clipboard operation
rainbow copied to clipboard

Random code added

Open etetlow opened this issue 6 years ago • 2 comments

Hey, I'm having a bizarre occurrence of phantom code which appears from nowhere. Please view attached screenshots and advise. It's after: controls = screen shot 2018-05-28 at 10 57 20 screen shot 2018-05-28 at 10 57 49 screen shot 2018-05-28 at 10 54 17

etetlow avatar May 28 '18 10:05 etetlow

Hi @etetlow. I believe the issue here is that the browser is interpreting the < and > tags in your javascript as html tags. Try replacing them with &lt; and &gt;.

<code data-language="js">
function prepareFlexTable() {
    var left = $('&lt;i/&gt;').attr('class', 'fas fa-angle-left'),
</code>

etc.

ccampbell avatar Jun 02 '18 02:06 ccampbell

Hey @ccampbell . That did the trick. That you soo much. Was dreading having to change my syntax highlighter snd all the code involved.

etetlow avatar Jun 02 '18 08:06 etetlow