][newvalue][/grep] > [/text]> [text]newvalue=[grep search=%0D&replace=
][newvalue][/grep][/ > text]> [text]newvalue=[convertchars table=basic_conversions][newvalue][/ > convertchars][/text]>> The cleaned variable is then displayed and stored as:>>
[newvalue]
>>--Apple-Mail-4-579541169Content-Type: text/html;charset=US-ASCIIContent-Transfer-Encoding: quoted-printableHi =guys,Here is what I do - you can see it in action =here:I only =allow limited HTML - <strong> <em> and <a =href=3D""></a> - though it could be extended to allow other =tags. Basically I grep and replace the allowed tags and then =remove all other HTML. I don't worry about WebDNA tags as I ensure =the input comment is not wrapped with [interpret]. =- =TomSo the posted =variable is [comment][table =name=3Dbasic_conversions&fields=3Dfrom,to]&&""[/table][text]newvalue=3D[grep =search=3D<(strong|/strong|em|/em|blockquote|/blockquote)>&replac=e=3D|\1|][comment][/grep][/text][text]newvalue=3D[grep search=3D<a =href=3D"([^"]*)"([^>]*)>([^<]*)</a>&replace=3D|a =href=3D\1|\3|/a|][newvalue][/grep][/text][text]newvalue=3D[removehtml][newvalue][/removehtml][/text][text]newvalue=3D[grep =search=3D\|(strong|/strong|em|/em|blockquote|/blockquote)\|&replace=3D=<\1>][newvalue][/grep][/text][text]newvalue=3D[grep search=3D\|a =href=3D([^\|]*)\|([^\|]*)\|/a\|&replace=3D<a =href=3D"\1">\2</a>][newvalue][/grep][/text]=[text]newvalue=3D[unurl][grep =search=3D%250A&replace=3D][url][newvalue][/url][/grep][/unurl][/text]<=/font>[text]newvalue=3D[grep =search=3D%0D%0D&replace=3D</p><p>][newvalue][/grep][/text]=[text]newvalue=3D[grep =search=3D%0D&replace=3D<br =/>][newvalue][/grep][/text][text]newvalue=3D[convertchars =table=3Dbasic_conversions][newvalue][/convertchars][/text]=The cleaned variable is then =displayed and stored as:=<p>[newvalue]</p>
=
|
][newvalue][/grep] > [/text]> [text]newvalue=[grep search=%0D&replace=
][newvalue][/grep][/ > text]> [text]newvalue=[convertchars table=basic_conversions][newvalue][/ > convertchars][/text]>> The cleaned variable is then displayed and stored as:>>
[newvalue]
>>--Apple-Mail-4-579541169Content-Type: text/html;charset=US-ASCIIContent-Transfer-Encoding: quoted-printableHi =guys,Here is what I do - you can see it in action =here:I only =allow limited HTML - <strong> <em> and <a =href=3D""></a> - though it could be extended to allow other =tags. Basically I grep and replace the allowed tags and then =remove all other HTML. I don't worry about WebDNA tags as I ensure =the input comment is not wrapped with [interpret]. =- =TomSo the posted =variable is [comment][table =name=3Dbasic_conversions&fields=3Dfrom,to]&&""[/table][text]newvalue=3D[grep =search=3D<(strong|/strong|em|/em|blockquote|/blockquote)>&replac=e=3D|\1|][comment][/grep][/text][text]newvalue=3D[grep search=3D<a =href=3D"([^"]*)"([^>]*)>([^<]*)</a>&replace=3D|a =href=3D\1|\3|/a|][newvalue][/grep][/text][text]newvalue=3D[removehtml][newvalue][/removehtml][/text][text]newvalue=3D[grep =search=3D\|(strong|/strong|em|/em|blockquote|/blockquote)\|&replace=3D=<\1>][newvalue][/grep][/text][text]newvalue=3D[grep search=3D\|a =href=3D([^\|]*)\|([^\|]*)\|/a\|&replace=3D<a =href=3D"\1">\2</a>][newvalue][/grep][/text]=[text]newvalue=3D[unurl][grep =search=3D%250A&replace=3D][url][newvalue][/url][/grep][/unurl][/text]<=/font>[text]newvalue=3D[grep =search=3D%0D%0D&replace=3D</p><p>][newvalue][/grep][/text]=[text]newvalue=3D[grep =search=3D%0D&replace=3D<br =/>][newvalue][/grep][/text][text]newvalue=3D[convertchars =table=3Dbasic_conversions][newvalue][/convertchars][/text]=The cleaned variable is then =displayed and stored as:=<p>[newvalue]</p>
=
DOWNLOAD WEBDNA NOW!
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...