You need to sign in to do that
Don't have an account?
TLF
How do you get a " character to appear in a sectionHeader title or subtitle?
Ok, I feel kind of dumb asking this, but I'm trying to get double quote characters to appear in either the title or subtitle attributes of an <apex:sectionHeader>. I tried using ", but that gets converted into """ in the rendered page. I also tried using the " character directly, but the Visualforce compile gets confused by the nested quotes in the title or subtitle attribute. Am I missing something obvious?
i haven't found a way either to do it direcly within the apex tag
if acceptable, you can use a pair of left and right double quotes (“ ”)
but if you extremely need " you can create a String property in your controller that solely returns this character, i.e.
then you can refer to it in you apex tag like this:
you can also do it via javascript :D
All Answers
I just built my title string containing " in the controller and rendered it that way. Seems like there ought to be a pure Visualforce way of doing this though.
i haven't found a way either to do it direcly within the apex tag
if acceptable, you can use a pair of left and right double quotes (“ ”)
but if you extremely need " you can create a String property in your controller that solely returns this character, i.e.
then you can refer to it in you apex tag like this:
you can also do it via javascript :D
I like your suggestion of having a controller variable that just returns the " character and concatenating that into the rendered title or subtitle. More flexible than my approach where I just built the whole string controller side.