simplepie/simplepie — pull request #351 by Alkarex (2014-02-17 17:27:11+00:00)
Title: [FreshRSS] New function add_attributes()

Just like there is a strip_attributes() function, here is a new
add_attributes() which works on the same model, except it is to add
attributes instead of removing them.

Just like strip attributes(), add_attributes() comes with some default
settings, namely to add a few HTML5 attributes:
```html

```

Watch out that I have changed the signature of the protected functions
strip_tag() and strip_attr() for performance reasons (to avoid a loop of
new DOMXPath()). If this is a problem, I could propose a patch with the
old signatures.

This is a first attempt to report upstream some improvements made for
the FreshRSS news reader http://freshrss.org. If there is interest,
there will be more.