I have a page(page1) with property
public virtual XhtmlString DescriptionText { get; set; }
I am rendering the above value onto the other page. But the text is rendered within html p tags
If I have given the input as "This is test" on page1, when I try to render on page2, it is appearing as "
This is test>/p>"
I don't know where the p tags are coming from. I want the output on page2 the same text as page1.
text you will be getting back will contain <p> or <div>Regards/K
So do we have have to use regex on page2 to prevent rendering <p> or <div> tags?
Or Is there any other way to get page1 xhtml property value onto page2 without <p> or <div> tags?
with assumption its mvc, HTML.PropertyFor should work.
I have a page(page1) with property
public virtual XhtmlString DescriptionText { get; set; }
I am rendering the above value onto the other page. But the text is rendered within html p tags
If I have given the input as "This is test" on page1, when I try to render on page2, it is appearing as "
This is test>/p>"
I don't know where the p tags are coming from. I want the output on page2 the same text as page1.