What is WebDNA

WebDNA is a scripting and database system designed to easily build web applications.

WebDNA and BioType

BioType service is a biometric keystroke dynamic system. It will be part of WebDNA 8.5

Download WebDNA

Download WebDNA freeware, try it and register later if you want.

WebDNA resources

The list of all WebDNA instructions.
WebDNA
Software Corporation
Search WebDNA Site
 Menu


HOME


DOWNLOADS


LEARN


EDUCATION


NEWS


COMMUNITY


STORE


SUPPORT


CONTACT

Re: [WebDNA] Protect TextArea and other Input-Fields with WebDNA - Something to talk about ;)

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 102719
interpreted = N
texte = --Apple-Mail-4-579541169 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Tom I use this solution as well, and it's working okay. What I have not solved yet is how to make this... http://bytes.com/topic/javascript/answers/437652-list-options-textarea-using-javascript Take a look at how they present code examples. I would love to do it this way with fine lines, lines numbers, and safe from the codes being executes on the pages. Anyone got an idea on how to do this? Palle On 16/06/2009, at 09.23, Tom Duke wrote: > Hi guys, > > Here is what I do - you can see it in action here: > > http://www.foe.ie/blog/2009/05/29/policymaking-21st-century-style-by-tweet/#comments > > I only allow limited HTML - and - > 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]. > > - Tom > > > > So the posted variable is [comment] > > > [table name=basic_conversions&fields=from,to] > && > "" > [/table] > > [text]newvalue=[grep search=<(strong|/strong|em|/em|blockquote|/ > blockquote)>&replace=|\1|][comment][/grep][/text] > [text]newvalue=[grep search=]*)>([^<]*) a>&replace=|a href=\1|\3|/a|][newvalue][/grep][/text] > [text]newvalue=[removehtml][newvalue][/removehtml][/text] > [text]newvalue=[grep search=\|(strong|/strong|em|/em|blockquote|/ > blockquote)\|&replace=<\1>][newvalue][/grep][/text] > [text]newvalue=[grep search=\|a href=([^\|]*)\|([^\|]*)\|/a\| > &replace=\2][newvalue][/grep][/text] > [text]newvalue=[unurl][grep search=%250A&replace=][url][newvalue][/ > url][/grep][/unurl][/text] > [text]newvalue=[grep search=%0D%0D&replace=

][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-579541169 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable
Tom I use this solution as = well, and it's working okay.

What I have not = solved yet is how to make this...

http://bytes.com/topic/javascript/answers/437652-li= st-options-textarea-using-javascript

Take a = look at how they present code examples. I would love to do it this way = with fine lines, lines numbers, and safe from the codes being executes = on the pages.

Anyone got an idea on how to do = this?

Palle


On = 16/06/2009, at 09.23, Tom Duke wrote:

Hi = 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]. =

- = Tom



So the posted = variable is [comment]


[table = name=3Dbasic_conversions&fields=3Dfrom,to]
&&amp;
"&quot;
[/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>

=


= --Apple-Mail-4-579541169-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Protect TextArea and other Input-Fields with WebDNA - Something to talk about ;) (Palle Bo Nielsen 2009)
--Apple-Mail-4-579541169 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Tom I use this solution as well, and it's working okay. What I have not solved yet is how to make this... http://bytes.com/topic/javascript/answers/437652-list-options-textarea-using-javascript Take a look at how they present code examples. I would love to do it this way with fine lines, lines numbers, and safe from the codes being executes on the pages. Anyone got an idea on how to do this? Palle On 16/06/2009, at 09.23, Tom Duke wrote: > Hi guys, > > Here is what I do - you can see it in action here: > > http://www.foe.ie/blog/2009/05/29/policymaking-21st-century-style-by-tweet/#comments > > I only allow limited HTML - and - > 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]. > > - Tom > > > > So the posted variable is [comment] > > > [table name=basic_conversions&fields=from,to] > && > "" > [/table] > > [text]newvalue=[grep search=<(strong|/strong|em|/em|blockquote|/ > blockquote)>&replace=|\1|][comment][/grep][/text] > [text]newvalue=[grep search=]*)>([^<]*) a>&replace=|a href=\1|\3|/a|][newvalue][/grep][/text] > [text]newvalue=[removehtml][newvalue][/removehtml][/text] > [text]newvalue=[grep search=\|(strong|/strong|em|/em|blockquote|/ > blockquote)\|&replace=<\1>][newvalue][/grep][/text] > [text]newvalue=[grep search=\|a href=([^\|]*)\|([^\|]*)\|/a\| > &replace=\2][newvalue][/grep][/text] > [text]newvalue=[unurl][grep search=%250A&replace=][url][newvalue][/ > url][/grep][/unurl][/text] > [text]newvalue=[grep search=%0D%0D&replace=

][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-579541169 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable
Tom I use this solution as = well, and it's working okay.

What I have not = solved yet is how to make this...


Take a = look at how they present code examples. I would love to do it this way = with fine lines, lines numbers, and safe from the codes being executes = on the pages.

Anyone got an idea on how to do = this?

Palle


On = 16/06/2009, at 09.23, Tom Duke wrote:

Hi = 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]. =

- = Tom



So the posted = variable is [comment]


[table = name=3Dbasic_conversions&fields=3Dfrom,to]
&&amp;
"&quot;
[/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>

=


= --Apple-Mail-4-579541169-- Palle Bo Nielsen

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

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...

Related Readings:

Trouble with formula.db + more explanation (1997) PERL to Web DNA (2000) Error Lob.db records error message not name (1997) Problem with [Search] inside of [Loop]? (1997) [lookup] is case-sensitive, [lookup] is case sensitive... (2003) WebCatalog Upgrade Pricing? (1997) WebCat2 beta 11 - new prefs ... (1997) Another question (1997) Translator. (1998) customizing the color of user's pages (1997) [WebDNA] [announce] Marketing new hire (2009) Email Mac (2002) Running _every_ page through WebCat ? (1997) What am I missing (1997) two unique banners on one page (1997) Error -108 (1997) Interfacing WebMerchant to www.fedex.com (1997) BBEdit and WebCatalog 2.0? (1997) Never Mind - Was - Credit Card Processing (2000) OT - webdnadev.net ...... links bad??? (2005)