Subject: COM_undoSpecialChars

Posted on: 24/05/10 11:04pm
By: suprsidr

I was getting very frustrated trying to figure out why my javasctipt in my story was not rendering correctly.
I have skip html filtering for root = true

So again hacking into core code when it should not be necessary:

lib-story.php line ~ 83 & 84:
PHP Formatted Code

    $introtext = $story->displayElements('introtext');
    $bodytext = $story->displayElements('bodytext');
 

to:
PHP Formatted Code

    $introtext = COM_undoSpecialChars($story->displayElements('introtext'));
    $bodytext = COM_undoSpecialChars($story->displayElements('bodytext'));
 


I'm sure this is like using a hammer to kill a gnat, but so far I see no negatives.

-s

Re: COM_undoSpecialChars

Posted on: 11/03/11 12:06pm
By: suprsidr

Just ran into this issue again in GL 1.8 while adding SyntaxHighlighter.

-s

Re: COM_undoSpecialChars

Posted on: 04/01/12 08:32pm
By: stefani88



Thank you so much for your post.

Geeklog - Forum
https://www.geeklog.net/forum/viewtopic.php?showtopic=90458