Property value is appending paragraph tags at the end
Hi ,
I am new to umbraco . I created a document type then created a content node using that document type. But it is showing a wierd behaviour it is appending paragraph tags at the ends of each property value.
PFB the screenshots of the content node and the webpage.
Property value is appending paragraph tags at the end
Hi ,
I am new to umbraco . I created a document type then created a content node using that document type. But it is showing a wierd behaviour it is appending paragraph tags at the ends of each property value. PFB the screenshots of the content node and the webpage.
Any help will be appreciable.
If you use a rich-text editor then it will always wrap paragraphs in a
<p>
tag to ensure semantic correctness.If you just need to display plain text then use a textstring or textbox or multiple textbox input instead. See https://our.umbraco.org/Documentation/Getting-Started/Backoffice/Property-Editors/Built-in-Property-Editors/Textbox
If you need HTML formatting but don't want the tags then you can try using the following helper method:
Where "fieldAlias" is the alias of your RTE property.
Hi Dan Diplo,
Thank you it worked. I used textstring for some fields and for text areas i used
@Html.Raw(Model.HeaderText).
is working on a reply...