We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17775
    • 9 Posts
    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*]`!]