Skip to content
Snippets Groups Projects
Commit d6b7a2dd authored by Andreas Gohr's avatar Andreas Gohr
Browse files

Merge pull request #222 from hArpanet/patch-1

Added comment to DiffFormatter _escape() method
parents ea2272c4 bfd197d2
No related branches found
No related tags found
No related merge requests found
...@@ -817,7 +817,16 @@ class DiffFormatter { ...@@ -817,7 +817,16 @@ class DiffFormatter {
$this->_added($closing); $this->_added($closing);
} }
function _escape($str){ /**
* Escape string
*
* Override this method within other formatters if escaping required.
* Base class requires $str to be returned WITHOUT escaping.
*
* @param $str string Text string to escape
* @return string The escaped string.
*/
function _escape($str){
return $str; return $str;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment