I am using the code below to only show some of the description of an article on another page, and below the shorter description I have a link that says "read more" where the visitor gets linked to the original page. However, on some of these shorter ones, using this code, an "<" shows up. Which isn't very nice looking. How can I stop that from showing up? Thank you. Code: <div> {{product.description | truncate 150 | safe }} </div> Gives: Lalala lalala lalala test test.Lalala lalala lalala test test.Test: Lalala lalala lalala test test. Test: Lalala lalala lalala test test. Test<...
What does this have to do with PHP? Sounds to me like you are using some sort of templating system. It would help if you were actually specific.
Sounds more like you have an extra "<" in your code somewhere (it happens to all of us at one time or 10 others). Remove it. (Finding it is your job.)