The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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...
|
#2
|
|||
|
|||
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
|
#3
|
|||
|
|||
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 \\'. |
#4
|
|||
|
|||
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. |
#5
|
|||
|
|||
It ended up being due to some code I inherited from the last coder. It's all working now.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|