Fix invalid self-closed HTML tags


  • Administrator
  • Hero Member
  • *****
    • Posts: 832725
    • Gender:Male
  • point d’amour
Fix invalid self-closed HTML tags

Mediawiki category: Pages using invalid self-closed HTML tags (this is created automatically). Fix with this regex:

// Find every tag that isn't the first set of key words and starts with a set of letters. Capture the tag name and attribute
Code: [Select]
// Create a new tag using the original tag name (i.e. the first capture group of ([a-z|A-Z]*))
// Then add the attributes (i.e. second capture group of (.*))
// Then create a close tag using the first capture group
Code: [Select]
« Last Edit: 03 Oct, 2019, 16:24:48 by spiros »


Search Tools