Jump to content


Photo

Can't escape this quote


Best Answer requinix, 08 May 2018 - 08:06 PM

HTML doesn't do backslashes for escaping characters. You have to use an entity for it.

'label'       => __( 'Title <span class="tooltips" title="Give your title a catchy title, ideally starting with the word &quot;test&quot;">
Go to the full post


  • Please log in to reply
2 replies to this topic

#1 toolman

toolman
  • Members
  • PipPipPip
  • Advanced Member
  • 210 posts

Posted 08 May 2018 - 08:02 PM

Hi,

 

I'm trying to escape the following:

 

[php]

'label'       => __( 'Title <span class="tooltips" title="Give your title a catchy title, ideally starting with the word \"test"\>

[/php]

 

All it is displaying is a backslash.

 

Any ideas why this is?

 

Thanks



#2 requinix

requinix
  • Administrators
  • Impoverished Administrator
  • 9,874 posts
  • LocationWA

Posted 08 May 2018 - 08:06 PM   Best Answer

HTML doesn't do backslashes for escaping characters. You have to use an entity for it.
'label'       => __( 'Title <span class="tooltips" title="Give your title a catchy title, ideally starting with the word &quot;test&quot;">

"Basically, I think the general rule of thumb is: if someone really wants the blood that's inside of your body, and they're like a vampire, or a dracula, or some sort of man-squito, then that's probably okay. A dracula and a man-squito are made for removing things like blood and swords from inside your body. That's basically fine. If something wants to get at your blood and they're, say, some kind of murdersaurus, or maybe a really big frog, that's where the problems start to arise. A really big frog is not made for removing blood, and your blood knows this, which is why it is so vehement about wanting to stay in your body instead of coming out. Unfortunately this will not deter a really big frog because a really big frog is full of things like prizes, and value, and quite a lot of hatred, and it would really rather like to replace any and all of those things with your blood, and basically by any means possible." --slumbermancer

#3 toolman

toolman
  • Members
  • PipPipPip
  • Advanced Member
  • 210 posts

Posted 08 May 2018 - 08:18 PM

Thank you! It worked :)






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users