If you use JHtmlString::truncate() on text that will split a paragraph, Joomla will ouptut text with the elipses dangling outside of closing paragraph tag.
Reported on:
Joomla 1.7.3
Classification:
Low
Affected functions:
[USER] Describe the affected functions
Related files:
[USER] List related files when known
Steps to replicate:
Try out the following in a template file
Code: Select all
JHTML::_('string.truncate');
JHtmlString::truncate("<p>Some paragraph of text goes here.</p>,10);
Code: Select all
<p>Some...</p>
Code: Select all
<p>Some</p>...
[BugSquad] Confirmed/Unable to confirm/Rejected
Any other comments
Proposed fix(es):
Adjust the tag closing code to place the elipses inside the closing tag instead of outside.
Topic / Artifact ID:
[USER] Enter the cross reference for topic or artifact id/url when submitted
System info:
n/a