HTML

Regex to select table from HTML content

The following regular expression (regex) will select a table from HTML content. <table.*>(.|\n)*?<\/table> What about case sensitivity? e.g. <TABLE> Use the /i (insensitive) flag Want to select more than one…

How to add text/plain to HTML emails

By default WordPress will send emails as plain text using the content type "text/plain". But some plugins, such as Gravity Forms, will send HTML emails. The issue with this is…