Is there a way in visualforce to output text from a controller that does NOT get rendered in a span tag?
I want to just output a text string from my controller inside an <h4>
tag. When I use <apex:outputText value="{!someFieldValue}" />
it generates a <span>
tag with my value inside it and I just want the text with no additional HTML generated.
Best Answer
It is not always required to bind field value with outputtext when you put anything inside {!} it render value directly on visualforce page so you can do that in following way and it will render value with h4 tag