You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 29, 2019. It is now read-only.
It seems that importing HTML that includes <h1>, <h2>, .. tags messes up the formatting.
Here's a quick bash script that demonstrates what happens
#!/bin/bash## Save as sethtml.sh and execute by running# ./sethtml.sh "your api key" "a pad id" "<html><body><div><h1>Heading 1</h1><p>some text</p><h2>Heading 2</h2><p>More text</p></div></body></html>"#
APIKEY=$1
PADID=$2
HTML=$3
curl -d"apikey=$APIKEY" -d"padID=$PADID" -d"html=$HTML" http://localhost:9001/api/1/setHTML