Modulo:Font to span: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m proviamo a minuscolizzare
m Ancora più user-che-usano-il-maiuscolo-per-l'HTML-friendly
Riga 128:
--Costruisce lo span e ci inserisce il testo (substype 0)
span='<span style="' .. style .. '">'
text=string.gsub(str, "<%/?font[Ff][Oo][Nn][Tt][^>]*>", "")
result= span .. text .. "</span>"
 
Riga 229:
--Costruisce lo span unico, ci rimette dentro il testo e lo restituisce
text=string.gsub(string.gsub(str, "<%/?font[Ff][Oo][Nn][Tt][^>]*>", ""), "<%/?span[Ss][Pp][Aa][Nn][^>]*>", "")
return '<span style="' .. sty .. '">' .. text .. "</span>"
end