Craft Web Design + Development
Brendan McKeown

Hey there. I’m a front-end developer and web designer. I'm all about creating websites and web apps that look and perform flawlessly on any device using HTML, CSS, and Javascript. I enjoy utilizing libraries, frameworks and preprocessors that improve efficiency and reduce confusion.

Check out my resume.

Remove HTML Entities from a String

I needed to strip out all of the HTML entities from a string the other day for a feed. Here's what I ended up doing.

$noEntities = preg_replace("/&#?[a-z0-9]{2,8};/i", "", $string);