Menu

#1480 Tags in user data deleted (with patch)

N/A-1
closed-fixed
5
2005-03-10
2005-03-10
Ian Dall
No

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.

Discussion

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

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.