@@ 207-213 (lines=7) @@ | ||
204 | /** |
|
205 | * @param $li |
|
206 | */ |
|
207 | protected function deleteListItem($li) |
|
208 | { |
|
209 | $li->setAttribute('class', trim($li->getAttribute('class').' '.self::CLASS_LIST_ITEM_DELETED)); |
|
210 | $li->innertext = sprintf('<del>%s</del>', $li->innertext); |
|
211 | ||
212 | return $li->outertext; |
|
213 | } |
|
214 | ||
215 | /** |
|
216 | * @param $li |
|
@@ 220-226 (lines=7) @@ | ||
217 | * |
|
218 | * @return string |
|
219 | */ |
|
220 | protected function addListItem($li, $replacement = false) |
|
221 | { |
|
222 | $li->setAttribute('class', trim($li->getAttribute('class').' '.($replacement ? self::CLASS_LIST_ITEM_CHANGED : self::CLASS_LIST_ITEM_ADDED))); |
|
223 | $li->innertext = sprintf('<ins>%s</ins>', $li->innertext); |
|
224 | ||
225 | return $li->outertext; |
|
226 | } |
|
227 | ||
228 | /** |
|
229 | * @param $operations |