Skip to content
Snippets Groups Projects
Commit 45057c77 authored by Peter Stadler's avatar Peter Stadler
Browse files

add replacement of control characters

parent 7c2097ff
No related branches found
No related tags found
2 merge requests!2Merge1.4,!1WIP: 1.4.0
......@@ -19,7 +19,16 @@ import module namespace functx="http://www.functx.com";
: @return xs:string
:)
declare function str:normalize-space($string as xs:string?) as xs:string {
normalize-unicode(normalize-space(replace($string, ' | | | ', ' ')))
normalize-unicode(
normalize-space(
replace(
(: diverse Control Codes entsorgen, siehe https://en.wikipedia.org/wiki/List_of_Unicode_characters :)
replace($string, '||€', ' '),
(: diversen Whitespace entsorgen, siehe https://en.wikipedia.org/wiki/Whitespace_character :)
' | | | ', ' '
)
)
)
};
(:~
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment