Share

OpenAjax Alliance

Tracker: Bugs

4 entityencode(...) and escapequotes(...) - ID: 2051832
Last Update: Comment added ( waynevicknair )

The IDE WG is talking about extending the variable syntax such that if you
say things like @@foo(htmlchars)@@ or %%bar(jschars)%% that the (htmlchars)
and (jschars) suffix cause a small amount of additional processing. With
(htmlchars) the substitution string gets processed by PHP's
htmlspecialchars() (or equivalent). With (jschars) the substitution strings
gets processed by PHP's addslashes() (or equivalent).


Jon Ferraiolo ( jonferraiolo ) - 2008-08-14 17:40

4

Closed

Fixed

Nobody/Anonymous

None

None

Public


Comments ( 2 )

Date: 2008-09-08 17:51
Sender: waynevicknairProject Admin

[12:50:46] - Sending
/Users/wayne/work/openajax/gadgets/trunk/samples/gadgets/tests/propertyTester.oam.xml
[12:50:47] - Sending
/Users/wayne/work/openajax/gadgets/trunk/samples/server/OAA/GadgetFactory.php
[12:50:54] - Committed revision 472




Date: 2008-08-22 00:26
Sender: jonferraioloProject Admin


Update: at the 2008-08-19 phone call, we decided on entityencode(varname)
and escapequotes(varname), where entityencode does the same things as
htmlchars above, and escapequotes does the same thing as jschars above. For
example, if you want to entity encode HTML's special chars for property
foo, you would say @@entityencode(foo)@@ and if you want to escape
JavaScript's special characters for localization topic bar, you would say
%%escapequotes(bar)%%.


Attached File

No Files Currently Attached

Changes ( 5 )

Field Old Value Date By
status_id Open 2008-09-08 17:51 waynevicknair
resolution_id None 2008-09-08 17:51 waynevicknair
close_date - 2008-09-08 17:51 waynevicknair
summary (htmlchars) and (jschars) 2008-08-22 00:26 jonferraiolo
priority 5 2008-08-14 17:42 jonferraiolo