taoeffect / vue-script2

Standardized, designer-friendly <script> behavior for your Single Page App
171 stars 15 forks source link

Bug with entities #24

Closed andrispraulitis closed 6 years ago

andrispraulitis commented 6 years ago

Hi, I'm using script2 directly in html files, but having a problem with entities where for example if (1 > 0) becomes if (1 & gt; 0) which of course breaks javascript.

Is there a fix for this?

taoeffect commented 6 years ago

It's not clear to me what's going on, can you provide more info on what exactly you're doing?

andrispraulitis commented 6 years ago
screen shot 2018-05-29 at 10 27 23 screen shot 2018-05-29 at 10 28 11

This is what I meant with entities

taoeffect commented 6 years ago

Thanks for reporting this @andrispraulitis! I'll have to look at what's going on when I get a chance.

andrispraulitis commented 6 years ago

Hi @taoeffect, have you had a chance to look into this?

andrispraulitis commented 6 years ago

This is the problem: innerHtml

textContent does work but then html tags are ignored..