![]() |
Getting around the style manager escaping everything
I'm trying to write a custom template in VB and I'm noticing that it escapes double quotes, slashes and things like that. How do I get around this? I kinda need to use double quotes without slashes around them...
|
It's not so much the style manager as it is html - some characters need to be encoded, like double quotes - you need to use " where you want them. Here's a list of encodings for other characters (most of which you'll never need). http://www.w3schools.com/tags/ref_entities.asp
|
I need to make stuff like
<tag attr="stuff here" /> and it comes out as <tag attr=\"stuff here\" /> and breaks the HTML. So far I've been using single quotes but I'm in a position where that's impossible, I can't escape my single quotes to keep the string either because \' turns into \\'. |
Oh, OK, I misunderstood - I don't think that should be happening. Does it happen on any template you edit?
Edit: And you see if after you fetch and eval() the template? It will normally look that way in the database. |
It ended up being due to some code I inherited from the last coder. It's all working now.
|
All times are GMT. The time now is 08:07 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|