XF 2.0 Pasting script code into options -> text box

BassMan

Well-known member
Licensed customer
Hi,

if I paste the script code <script type="text/javascript">...</script> in the text box area (when adding new option), the script does not apply. It runs like a normal text. If I paste the script directly to a template it's ok, it just doesn't work when it's inserted through options text box.

Some help on this would be appreciated. Thank you.
 
When using it in the template you’d need to opt out of escaping by using the raw filter:
Code:
{$xf.options.yourOptionId|raw}
 
Back
Top Bottom