From 63476204de94140e21727f906c601a813ab5297b Mon Sep 17 00:00:00 2001 From: Carlos Fenollosa Date: Mon, 15 Sep 2014 19:32:51 +0200 Subject: [PATCH] properly quote twitter cards --- bb.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bb.sh b/bb.sh index 028042a..e484fad 100755 --- a/bb.sh +++ b/bb.sh @@ -336,8 +336,8 @@ twitter_card() { echo "" echo "" echo "" # Twitter truncates at 70 char - description=$(grep -v "^

$template_tags_line_header" $1 | sed -e 's/<[^>]*>//g' | head -c 250 | tr '\n' ' ') - echo "" + description=$(grep -v "^

$template_tags_line_header" $1 | sed -e 's/<[^>]*>//g' | head -c 250 | tr '\n' ' ' | sed "s/\"/'/g") + echo "" image=$(sed -n 's/.*