Jump to:

23483 Posts in 18976 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Slash character in content

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 269 Views
  • BlueO
    Community Member
    52 Posts

    Slash character in content Link to this post

    Hi There,

    We've got an intranet site on 2.4 where people want to be able to post filepaths to network drives (eg E:\somepath\tofile.txt). So we've got an input field setup as HTMLText that will save the slashes if they are escaped (eg E:\\somepath\\tofile.txt). But then when displaying this field in a template the slashes are removed presumably as a security feature.
    I can display them but outputing them using RAW (eg $Content.RAW) but this feels dirty... is there a better way to do this?



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.