On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • I’m trying to figure out the HTMLENTITIES widget. When I set in my TV -> Widget -> HTMLENTITIES, the special chars will be display correctly. However, when I pass my TV into a Widget, then the htmlentities will be ignored. I have also tried using this code:
    <?php
    $strInputName = "$sendString";
    
    $name = htmlentities($strInputName);
    
    $modx->setPlaceholder('firstName', $name);
    
    return $modx->getChunk('This');
    ?>


    Where $sendString comes from -> [!mySnippetName? &sendString=`[*myTVwithHTMLwidget*]`!]