diff options
author | Andreas Gohr <andi@splitbrain.org> | 2013-06-16 12:26:55 -0700 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2013-06-16 12:26:55 -0700 |
commit | d6b7a2dd189b692f9a754f4f1a330abe6449669a (patch) | |
tree | 0ffd22146d70fa4ee928e705dd27db2dec110ad6 | |
parent | ea2272c40a77ba38305773f8f3e3172bb71e9f49 (diff) | |
parent | bfd197d22f32f74940afadf1e308828773dbde18 (diff) | |
download | rpg-d6b7a2dd189b692f9a754f4f1a330abe6449669a.tar.gz rpg-d6b7a2dd189b692f9a754f4f1a330abe6449669a.tar.bz2 |
Merge pull request #222 from hArpanet/patch-1
Added comment to DiffFormatter _escape() method
-rw-r--r-- | inc/DifferenceEngine.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/inc/DifferenceEngine.php b/inc/DifferenceEngine.php index 783d6bea5..07df7a4be 100644 --- a/inc/DifferenceEngine.php +++ b/inc/DifferenceEngine.php @@ -817,7 +817,16 @@ class DiffFormatter { $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; } } |