initial commit with stuff from arise
Some checks are pending
Deploy Arise to html branch / Deploy Arise (push) Waiting to run

This commit is contained in:
Wheaterwax 2025-09-01 18:57:24 -03:00
commit 0faf445b39
62 changed files with 3401 additions and 0 deletions

View file

@ -0,0 +1,25 @@
#!/bin/bash
#############
# DESCRIPTION
#############
# Cleans special characters out of a string intended for use in xml format
#
#############
# Usage:
# clean_xml_string "string with special characters"
clean_xml_string() {
# unclean string -> clean string
input_string="$1"
# replace & with &
input_string=${input_string//\&/\&}
# replace < with &lt;
input_string=${input_string//</\&#60;}
# replace > with &gt;
input_string=${input_string//>/\&#62;}
# replace ' with &apos;
input_string=${input_string//\'/\&#39;}
# replace " with &quot;
input_string=${input_string//\"/\&#34;}
echo "$input_string"
}