Small change: When
encode="html"
, encode also space besides newline and linefeed.
Reason: When feeding content into an HTML input field, it might get interpreted by TWiki as TML, such as
*bold*,
_italic_, or a URL like
http://twiki.org
. When space is encoded as
 
, it effectively escapes the TML, e.g. text fed into an HTML input field is preserved as is.
This takes effect in:
-
%ENCODE{ "..." type="html" }%
-
%FORMFIELD{ "..." encode="html" }%
-
%QUERYPARAMS{ "..." encode="html" }%
-
%URLPARAM{ "..." encode="html" }%
This change was needed to preserve form fields in the improved user profile pages,
Item6733,
TWiki:Codev.MoreVisualUserHomepages
.
--
TWiki:Main/PeterThoeny
- 2011-06-14
This is now in SVN trunk (and 5.0 branch, although a 5.0.2 release is not expected).
--
TWiki:Main.PeterThoeny
- 2011-06-14