Friday 03 December 2010 7:17:26 am
Hi There I created a custom tag to allow users to add extra HTML/Javascript code in XMLBlock. So I did the following modifications : content.ini.append.php
[CustomTagSettings]
AvailableCustomTags[]=code
IsInline[code]=false
[code]
CustomAttributes[]=code ezoe_attributes.ini.append.php
[code]
CustomAttributes[]=code
[CustomAttribute_code_code]
Name=Code
Type=text
Required=true code.tpl
{wrap_php_func('html_entity_decode', array( $code ))} With this, <b>UN</b> <i>test</i> <u><i>normal</i></u> run correctly but <script type="text/javascript"> alert ( "Hello World" ) ;</script> Stops while running with the following error : <span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; white-space: normal; font-size: 13px; " mce_fixed="1"><!-- START: including template: design/standard/templates/content/datatype/view/ezxmltags/code.tpl (design:content/datatype/view/ezxmltags/code.tpl) -->
Mon code : <script typ
<!-- STOP: including template: design/standard/templates/content/datatype/view/ezxmltags/code.tpl (design:content/datatype/view/ezxmltags/code.tpl) --></span>
I don't understand what happens. Could someone explain me why it crash while running this very simple text ? Thanks, Damien
|