html encoding issue?
Hello all,
Just started using elrte again and I'm experiencing an issue. I have some <table> code in the editor with a class="first article". When I save the form containing the editor and then render the result, image links are broken and other styles and classes are broken.
When I look at the source I see that
class="first article" is now class="\"first" article\"=""Looks like it's not handing htmlentities properly or something.
Seems like I had this issue months back when I was working with elite and I fixed it somehow but I can't for the life of me figure out how I did it if I did indeed fix it...haha. I have tried fresh copies, putting the elrte folder in the root level instead of in a js folder...nothing fixed it.
Anyone experience this before and if so were you able to fix it and how?
Thanks in advance, any help is greatly appreciated as this is the only thing preventing me from finishing the project I am working on.
-Twitch
Replies (1)
RE: html encoding issue?
-
Added by E R 6 months ago
Well, lack of sleep was the issue. I'm using prepared statements (not used to using them yet) saving to sqlite db and it adds slashes when saving. I forgot I fixed it before by adding stripslashes() around the content pulled from the database....sorry I blamed it on elite...haha
-Twitch
(1-1/1)