escapeButPreserveUris() public method

Escapes a string for output in an HTML document, but preserves URIs within it, and converts them to clickable anchor elements.
public escapeButPreserveUris ( string $raw ) : string
$raw string
return string
 /**
  * @covers Whoops\Util\TemplateHelper::escapeButPreserveUris
  */
 public function testEscapeButPreserveUris()
 {
     $original = "This is a <a href=''>http://google.com</a> test string";
     $this->assertEquals($this->helper->escapeButPreserveUris($original), "This is a &lt;a href=&#039;&#039;&gt;<a href=\"http://google.com\" target=\"_blank\">http://google.com</a>&lt;/a&gt; test string");
 }