1--TEST-- 2html_entity_decode: Handling of ' 3--FILE-- 4<?php 5 6echo "*** HTML 4.01 implicit (shouldn't decode) ***\n"; 7echo html_entity_decode("'", ENT_QUOTES, "UTF-8"), "\n"; 8 9echo "*** HTML 4.01 (shouldn't decode) ***\n"; 10echo html_entity_decode("'", ENT_QUOTES | ENT_HTML401, "UTF-8"), "\n"; 11 12echo "*** HTML 5 ***\n"; 13echo html_entity_decode("'", ENT_QUOTES | ENT_HTML5, "UTF-8"), "\n"; 14 15echo "*** XHTML 1.0 ***\n"; 16echo html_entity_decode("'", ENT_QUOTES | ENT_XHTML, "UTF-8"), "\n"; 17 18echo "*** XML 1.0 ***\n"; 19echo html_entity_decode("'", ENT_QUOTES | ENT_XML1, "UTF-8"), "\n"; 20 21echo "Done.\n"; 22?> 23--EXPECT-- 24*** HTML 4.01 implicit (shouldn't decode) *** 25' 26*** HTML 4.01 (shouldn't decode) *** 27' 28*** HTML 5 *** 29' 30*** XHTML 1.0 *** 31' 32*** XML 1.0 *** 33' 34Done. 35