| 51 |
$attr_value =~ s/&/&/g; |
$attr_value =~ s/&/&/g; |
| 52 |
$attr_value =~ s/</</g; |
$attr_value =~ s/</</g; |
| 53 |
$attr_value =~ s/>/>/g; |
$attr_value =~ s/>/>/g; |
| 54 |
$attr_value =~ s/"/"/g; |
$attr_value =~ s/"/"/g; # in attribute mode |
| 55 |
$attr_value =~ s/\xA0/ /g; |
$attr_value =~ s/\xA0/ /g; |
| 56 |
$s .= $attr_value . '"'; |
$s .= $attr_value . '"'; |
| 57 |
} |
} |
| 64 |
spacer => 1, wbr => 1, |
spacer => 1, wbr => 1, |
| 65 |
}->{$tag_name}; |
}->{$tag_name}; |
| 66 |
|
|
| 67 |
$s .= "\x0A" if $tag_name eq 'pre' or $tag_name eq 'textarea'; |
$s .= "\x0A" if {pre => 1, textarea => 1, listing => 1}->{$tag_name}; |
| 68 |
|
|
| 69 |
if (not $in_cdata and { |
if (not $in_cdata and { |
| 70 |
style => 1, script => 1, xmp => 1, iframe => 1, |
style => 1, script => 1, xmp => 1, iframe => 1, |
| 84 |
$value =~ s/&/&/g; |
$value =~ s/&/&/g; |
| 85 |
$value =~ s/</</g; |
$value =~ s/</</g; |
| 86 |
$value =~ s/>/>/g; |
$value =~ s/>/>/g; |
| 87 |
$value =~ s/"/"/g; |
#$value =~ s/"/"/g; |
| 88 |
$value =~ s/\xA0/ /g; |
$value =~ s/\xA0/ /g; |
| 89 |
$s .= $value; |
$s .= $value; |
| 90 |
} |
} |