public
Last active — forked from bxt/amp-converter.php

  • Download Gist
amp-converter.php
PHP
1
<?php $text=preg_replace ('/&(?!amp;|quot;|nbsp;|gt;|lt;|laquo;|raquo;|copy;|reg;|#[0-9]{1,5};|#x[0-9A-F]{1,4};)/','&amp;', $text);

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.