projects
/
outofuni
/
jsutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
9802a83
)
more umlaute and sonderzeichen
author
hackbard
<hackbard@hackdaworld.org>
Sun, 15 Oct 2017 08:24:03 +0000
(10:24 +0200)
committer
hackbard
<hackbard@hackdaworld.org>
Sun, 15 Oct 2017 08:24:03 +0000
(10:24 +0200)
utils.js
patch
|
blob
|
history
diff --git
a/utils.js
b/utils.js
index
0d78e8b
..
a63f0af
100644
(file)
--- a/
utils.js
+++ b/
utils.js
@@
-34,14
+34,22
@@
function vert_align_text(trg) {
}
function html2ascii(str) {
}
function html2ascii(str) {
+ str=str.replace(/\Ä\;/g,"Ä");
+ str=str.replace(/\Ö\;/g,"Ö");
+ str=str.replace(/\Ü\;/g,"Ü");
str=str.replace(/\ä\;/g,"ä");
str=str.replace(/\ö\;/g,"ö");
str=str.replace(/\ü\;/g,"ü");
str=str.replace(/\ß\;/g,"ß");
str=str.replace(/\ä\;/g,"ä");
str=str.replace(/\ö\;/g,"ö");
str=str.replace(/\ü\;/g,"ü");
str=str.replace(/\ß\;/g,"ß");
+ str=str.replace(/\&\;/g,"&");
return str;
}
function ascii2html(str) {
return str;
}
function ascii2html(str) {
+ str=str.replace(/&/g,"&");
+ str=str.replace(/Ä/g,"Ä");
+ str=str.replace(/Ö/g,"Ö");
+ str=str.replace(/Ü/g,"Ü");
str=str.replace(/ä/g,"ä");
str=str.replace(/ö/g,"ö");
str=str.replace(/ü/g,"ü");
str=str.replace(/ä/g,"ä");
str=str.replace(/ö/g,"ö");
str=str.replace(/ü/g,"ü");