I need to cms:show content which was entered via a 'richtext' field. This is the code:
The problem occurs when "description" contains a link itself, since then there's a link nested in a link. It is both semantically incorrect and impossible to style properly.
Given the situation, is there a way of stripping all HTML added in a richtext field when pulling that data with cms:show? Similar to how it's possible to format k_page_date? So, perhaps something like <cms:show description format='plaintext'>?
- Code: Select all
<a href="<cms:show k_page_link />">
<h2><cms:show k_page_title /></h2>
<p><cms:show description /></p>
<div class="meta">
<small>Update: <b><cms:date k_page_date format='M j, Y h:i a' /></b> by <b><cms:show author /></b></small>
</div>
</a>
The problem occurs when "description" contains a link itself, since then there's a link nested in a link. It is both semantically incorrect and impossible to style properly.
Given the situation, is there a way of stripping all HTML added in a richtext field when pulling that data with cms:show? Similar to how it's possible to format k_page_date? So, perhaps something like <cms:show description format='plaintext'>?