Forum Replies Created

Viewing 1 replies (of 1 total)
  • Here’s the regular expressions that work for me:

    To enclose all attributes in quotes:
    h = h.replace(new RegExp(‘=([^\'”][^ >]+)’, ‘gi’), ‘=”$1″‘);

    To remove height/width attributes:
    h = h.replace(new RegExp(‘ (width|height)=”([0-9])+”‘, ‘gi’), ”);

Viewing 1 replies (of 1 total)