vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Getting around the style manager escaping everything (https://vborg.vbsupport.ru/showthread.php?t=285211)

dan1088352 07-04-2012 08:04 PM

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

kh99 07-04-2012 09:38 PM

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

dan1088352 07-05-2012 01:02 AM

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 \\'.

kh99 07-05-2012 09:27 AM

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.

dan1088352 07-07-2012 09:52 PM

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
  • Page Generation 0.00921 seconds
  • Memory Usage 1,713KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete