Status: offline

suprsidr

Forum User
Full Member
Registered: 12/29/04
Posts: 555
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:
Text Formatted Code

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

to:
Text 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
FlashYourWeb and Your Gallery with the E2 XML Media Player for Gallery2 - http://www.flashyourweb.com

Status: offline

suprsidr

Forum User
Full Member
Registered: 12/29/04
Posts: 555
Just ran into this issue again in GL 1.8 while adding SyntaxHighlighter.

-s
FlashYourWeb and Your Gallery with the E2 XML Media Player for Gallery2 - http://www.flashyourweb.com

Status: Banned

stefani88

Forum User
Newbie
Registered: 01/03/12
Posts: 2


Thank you so much for your post.