Revision fedfcc67
Von Moritz Bunkus vor fast 18 Jahren hinzugefügt
SL/Template.pm | ||
---|---|---|
91 | 91 |
'<pagebreak>', |
92 | 92 |
'&', quotemeta("\n"), |
93 | 93 |
'"', '\$', '%', '_', '#', quotemeta('^'), |
94 |
'{', '}', '<', '>', '?', "\r", '?', |
|
94 |
'{', '}', '<', '>', '?', "\r", '?', '\xe1',
|
|
95 | 95 |
], |
96 | 96 |
quotemeta("\\") => '\\textbackslash ', |
97 | 97 |
'<pagebreak>' => '', |
... | ... | |
108 | 108 |
'?' => '\pounds ', |
109 | 109 |
"\r" => "", |
110 | 110 |
'?' => '$\pm$', |
111 |
'\xe1' => '$\bullet$', |
|
111 | 112 |
quotemeta('^') => '\^\\', |
112 | 113 |
quotemeta("\n") => '\newline ' |
113 | 114 |
); |
... | ... | |
125 | 126 |
$variable =~ s/\$\<\$${key}\$\>\$(.*?)\$<\$\/${key}\$>\$/\\${new}\{$1\}/gi; |
126 | 127 |
} |
127 | 128 |
|
129 |
$variable =~ s/[\x00-\x1f]//g; |
|
130 |
|
|
128 | 131 |
return $variable; |
129 | 132 |
} |
130 | 133 |
|
Auch abrufbar als: Unified diff
Weitere Sonderzeichen escapen.