|
From: Brian F. <bri...@ai...> - 2023-01-04 19:33:19
|
Hi Wolfgang I think that you need to use the endtag optional parameter to ns_adp_registerscript i.e. see https://naviserver.sourceforge.io/n/naviserver/files/ns_adp_register.html Brian ________________________________ From: Wolfgang Winkler via naviserver-devel <nav...@li...> Sent: Wednesday 4 January 2023 2:19 pm To: Navidevel <nav...@li...> Cc: Wolfgang Winkler <wol...@di...> Subject: [naviserver-devel] ns_adp_registerproc and attributes Hello! When we try to use custom tags with attributes, we encounter a problem when passing html strings, e.g: proc ::dummy_tag_proc {params} { return [ns_set array $params] } ns_adp_registerscript dummy_tag ::dummy_tag_proc <dummy_tag title="<i class='fal fa-link'></i>"> Outputs: title {"<i class='fal fa-icon'>} Everything after the first ">" is truncated. Is there a safe way to prevent this behaviour? Regards, Wolfgang -- Wolfgang Winkler Geschäftsführung wol...@di...<mailto:wol...@di...> mobil +43.699.19971172 dc:büro digital concepts Novak Winkler OG Software & Design Landstraße 68, 5. Stock, 4020 Linz www.digital-concepts.com<http://www.digital-concepts.com> tel +43.732.997117.72 tel +43.699.1997117.2 Firmenbuchnummer: 192003h Firmenbuchgericht: Landesgericht Linz [https://www.digital-concepts.com/cu/digitalconcepts2016/images/logo_digitalconcepts2016.png] |