Module:HTMLParse: Difference between revisions

23 bytes removed ,  01:17, 5 January 2021
m
no edit summary
mNo edit summary
mNo edit summary
 
Line 25: Line 25:
         htmlString = frame:preprocess(htmlString)  --expand any templates that may have been passed to this module
         htmlString = frame:preprocess(htmlString)  --expand any templates that may have been passed to this module
     end
     end
    htmlString = frame
     --split string at the first alphabetic character that appears immediately after a starting html tag <...>
     --split string at the first alphabetic character that appears immediately after a starting html tag <...>
     prefix = htmlString:match'([^/]*>)' or ''
     prefix = htmlString:match'([^/]*>)' or ''