1--TEST-- 2Bug #40637 (strip_tags() does not handle single quotes correctly) 3--FILE-- 4<?php 5 6$html = '<span title="Bug \' Trigger">Text</span>'; 7var_dump(strip_tags($html)); 8 9echo "Done\n"; 10?> 11--EXPECTF-- 12string(4) "Text" 13Done 14