diff --git a/memes.sh b/memes.sh index 14e6adf..56695a7 100644 --- a/memes.sh +++ b/memes.sh @@ -78,7 +78,6 @@ alt=$(echo "$alt" | sed -e 's/

/\n/g' -e 's/<\/p>/\n/g' -e 's/<[^>]*>//g' -e ' alt=$(echo "$alt" | sed 's/ */ /g' | sed 's/^ //;s/ $//') alt=$(echo "$alt" | sed 's/^"//;s/"$//') alt=$(echo "$alt" | sed 's/\\"/"/g') -alt=$(printf '%q' "$alt") # Step 1: Replace newlines with a placeholder alt=$(echo "$alt" | sed ':a;N;$!ba;s/\n/PLACEHOLDER_NEWLINE/g')