Return value is \(begin end name positive-p), or nil if none was found."
(while (and (search-forward "<" nil 1)
(progn (goto-char (match-beginning 0))
- (not (looking-at enriched-annotation-regexp))))
+ ;; Make sure we are not inside a string, where any
+ ;; matches for 'enriched-annotation-regexp' are
+ ;; false positives. This happens, for example, in
+ ;; display properties that specify SVG images.
+ (or (nth 3 (syntax-ppss))
+ (not (looking-at enriched-annotation-regexp)))))
(forward-char 1)
(if (eq ?< (char-after (point)))
(delete-char 1)