bradyvercher / gistpress

WordPress plugin to add Gist oEmbed and shortcode support with caching.
GNU General Public License v2.0
143 stars 28 forks source link

Removing unneccessary HTML elements from Gist output #64

Closed Nilpo closed 8 years ago

Nilpo commented 8 years ago

Closes issue #63 and addresses the latest comment in issue #55.

I originally had a different solution using the DOMDocument, but it was more reliable to simply parse the text directly.

Nilpo commented 8 years ago

Edited to make the replacements case insensitive.

GaryJones commented 8 years ago

@bradyvercher I need to actually test, but otherwise I'm good with this.