#1480 Tags in user data deleted (with patch)

Ian Dall

If you have user entered text which is brace delimited.
it is not displayed. For example create a block which
includes the text {FOOBAR} and the {FOOBAR} will not be
displayed. This is because it gets deleted when
HTML_Template_IT cleans out unused tags, even though it
never attempts to substitute tags in the data.

There is an option 'preserve_data' for HTML_Template_IT
which prevents text matching the pattern for tags being
deleted from user data. I think this should be the
default. I also have an extension which relies on the
preserve_data behaviour. Of course, it would be
possible to either provide an extra option to
PHWS_Template::processTemplate, or add a variant
function, but I can't see any reason not to make the
'preserve_data' option always be on.


  • Ian Dall

    Ian Dall - 2005-03-10

    Context diff to set preserve_data option in HTML_Template_IT

  • Steven Levin

    Steven Levin - 2005-03-10
    • assigned_to: nobody --> jydallstar
    • status: open --> closed-fixed

Log in to post a comment.