diff options
author | Simon Rettberg | 2019-05-27 18:19:24 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-05-27 18:19:24 +0200 |
commit | a92edd5f723d56a377905c91bb6321790d0d3a98 (patch) | |
tree | 583fd732c5cb9763b743b4206b9e722c6427e5d2 /modules/xml.inc | |
parent | Add download and download_retry (diff) | |
download | slx-tools-a92edd5f723d56a377905c91bb6321790d0d3a98.tar.gz slx-tools-a92edd5f723d56a377905c91bb6321790d0d3a98.tar.xz slx-tools-a92edd5f723d56a377905c91bb6321790d0d3a98.zip |
Add String and XML helpers
Diffstat (limited to 'modules/xml.inc')
-rw-r--r-- | modules/xml.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/xml.inc b/modules/xml.inc new file mode 100644 index 0000000..4fa4b84 --- /dev/null +++ b/modules/xml.inc @@ -0,0 +1,6 @@ +#!/bin/ash + +xml_get() { + xmlstarlet sel --text --encode utf-8 --template --value-of "$1" "$2" +} + |