Double quote in Instagram image description breaks html
-
I have double quote in Instagram image description, when it renders image it breaks html:
$output .= ‘<img class=”front-photo” src=”‘ . sInstCache( $data[‘data’][$i][‘images’][‘thumbnail’][‘url’], $width ) . ‘” width=”‘ . $width .'” height=”‘ . $width . ‘” title=”‘ . $data[‘data’][$i][‘caption’][‘text’] . ‘”>’;
title attribute of an image unexpectedly closes if $data[‘data’][$i][‘caption’][‘text’] contains double quote
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Double quote in Instagram image description breaks html’ is closed to new replies.