Menu

#205 End tags erroneously included in plaintext

open
nobody
None
2023-01-11
2023-01-11
olalav
No
$str = "<svg>
  Hello, World!
  <g>
    <path/>
    <path/>
  </g>
</svg>
";
$html = str_get_html($str);
echo $html->expect("svg", 0)->plaintext;
Hello, World! </g> </svg>

Discussion


Log in to post a comment.