Module:HTMLParse: Difference between revisions

157 bytes added ,  19:44, 4 September 2019
m
add strip_formatting
mNo edit summary
m (add strip_formatting)
Line 21: Line 21:
function p.make_possessive(frame)
function p.make_possessive(frame)
     return p.pluralize(frame, "'")
     return p.pluralize(frame, "'")
end
function p.strip_formatting(frame)
    local htmlString = frame.args.html
    local plainString = htmlString:gsub('<[^>]->', '')
    return plainString
end
end


return p
return p