title: How to make php "substr" ignore code for images?
body: <p>On my website, I have a code to cut off a long string of text using php's "substr" method. However, if there is code for an image in the string, it sometimes cuts it off in the middle of the code for the image, causing the image not to display properly?</p>
  
  <p>How can I fix this?</p>