Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Stupid question: $Variable.XML

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1357 Views
  • dio5
    Avatar
    Community Member
    501 Posts

    Stupid question: $Variable.XML Link to this post

    A few times I see template variables (like in the pagecomments) as
    $Variable.XML

    Now, I'm guessing this will output a xml clean string or something, could someone point me to the url in the docu where I can read upon this?

    I can't seem to find it.

  • Willr
    Avatar
    Forum Moderator
    5482 Posts

    Re: Stupid question: $Variable.XML Link to this post

    well I think it should be on this page - http://doc.silverstripe.com/doku.php?id=text but its probably out of date as its not. But I think from your guess its pretty spot on.

  • dio5
    Avatar
    Community Member
    501 Posts

    Re: Stupid question: $Variable.XML Link to this post

    Ok,

    now another question in the same line:

    I'm subclassing the comment stuff but I want to allow users to use some html-tags such as <a>, <img>, ...

    Is there some SS-built in method I could use, some 'bulletproof' strip_tags() thing, that gets rid of everything except the allowed tags, or should I just use strip_tags?

    1357 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.