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--EXPECT-- 23*** HTML 4.01 implicit (shouldn't decode) *** 24' 25*** HTML 4.01 (shouldn't decode) *** 26' 27*** HTML 5 *** 28' 29*** XHTML 1.0 *** 30' 31*** XML 1.0 *** 32' 33Done. 34