Skip to content

Instantly share code, notes, and snippets.

View BlakeHancock's full-sized avatar

Blake Hancock BlakeHancock

View GitHub Profile
@BlakeHancock
BlakeHancock / sshup.sh
Last active October 17, 2021 21:14
Project SSH Upload Script
#!/bin/env bash
err_report() {
echo "Error on line $1."
}
err_exit() {
echo "${SCRIPT_NAME}: ${1:-"Unknown error."}" 1>&2
exit 1
}
<script>
import appAnchor from './Anchor'
// Whitelist of elements
const elements = ['a', 'img', 'strong', 'em', 'br', 'hr']
// Whitelist of element attributes
const attributes = {
a: ['href'],
img: ['src', 'alt']