File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ trait EncodeEntitiesTrait {
99 * @return string
1010 */
1111 function toEntity ($ string ){
12- return \htmlentities ($ string, \ ENT_COMPAT | \ ENT_HTML5 );
12+ return \htmlentities ($ string );
1313 }
1414
1515}
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ function test_Element__call(){
99 $ dispatcher = new HTML \ElementDispatcher ;
1010
1111 $ el = $ dispatcher ->div ("This is a <bad>data string</bad> " );
12- $ this ->assertEquals ("<div>This is a <bad>data string</ bad></div> " , $ el ->render ());
12+ $ this ->assertEquals ("<div>This is a <bad>data string</ bad></div> " , $ el ->render ());
1313
1414 }
1515
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ function test_Element__callStatic_wo(){
1212 $ dispatcher = new HTML \ElementDispatcher ;
1313
1414 $ el = $ dispatcher ->div ("This is a <bad>data string</bad> " );
15- $ this ->assertEquals ("<div>This is a <bad>data string</ bad></div> " , $ el ->render ());
15+ $ this ->assertEquals ("<div>This is a <bad>data string</ bad></div> " , $ el ->render ());
1616 }
1717
1818 /**
You can’t perform that action at this time.
0 commit comments