Issue with the truncation on xhtml code
-
Hello,
I think there is a problem with the php function which is supposed to strip xhtml code from the description:Some feeds I’m trying to read, has a “read more” link at the end of the description tag.
<description><![CDATA[<img src="https://patriotreign.playitusa.com/wp-content/uploads/2015/12/week16-150x150.jpg" alt="week16" srcset="https://patriotreign.playitusa.com/wp-content/uploads/2015/12/week16-150x150.jpg 150w, https://patriotreign.playitusa.com/wp-content/uploads/2015/12/week16-300x300.jpg 300w, https://patriotreign.playitusa.com/wp-content/uploads/2015/12/week16-125x125.jpg 125w" sizes="(max-width: 150px) 100vw, 150px">Feste indigeste Arriva la week sedici ed arriva anche la terza sconfitta, quella che molti si aspettavano, la più prevedibile, se non altro per quanto di buono mostrato dai Jets nel primo appuntamento andato in onda a Foxboro in questa stagione, che aveva fatto presagire un ritorno al MetLife stadium proibitivo, e lo è stato... <a href="https://patriotreign.playitusa.com/analisi-giocatori/regular-season-week-16-patriots-jets/" title="Read Regular season week 16 – Patriots @ Jets">Read more ?</a>]]></description>
Unfortunately, sometimes, it gets truncated just in the middle of the Anchor tag, so the function doesn’t recognize it as xhtml code!
This is the result:
Feste indigeste Arriva la week sedici ed arriva anche la terza sconfitta, quella che molti si aspettavano, la più prevedibile, se non altro per quanto di buono mostrato dai Jets nel primo appuntamento andato in onda a Foxboro in questa stagione, che aveva fatto presagire un ritorno al MetLife stadium proibitivo, e lo è stato... <a href="https://patriotreign.playitusa.com/analisi-giocatori/regular-season-week-16-patriots-jets/" ... </li>
The really bad thing is that everything comes after the rss widget on the page, gets the link’s hover, because the anchor tag is open!
Any chance to fix?
this is the feed:
https://rssmix.com/u/8172648/rss.xml
The problem appear on the 8th (60 words per feed truncation, default visualization).
Cheers
- The topic ‘Issue with the truncation on xhtml code’ is closed to new replies.