Welcome to Geeklog, Anonymous Tuesday, November 26 2024 @ 09:44 pm EST

Geeklog Forums

COM_undoSpecialChars


Status: offline

suprsidr

Forum User
Full Member
Registered: 12/29/04
Posts: 555
Location:Champaign, Illinois
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
 Quote

Status: offline

suprsidr

Forum User
Full Member
Registered: 12/29/04
Posts: 555
Location:Champaign, Illinois
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
 Quote

Status: Banned

stefani88

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


Thank you so much for your post.
 Quote

All times are EST. The time is now 09:44 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content