Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
1 files changed, 1 insertions, 1 deletions
-rwxr-xr-xgenerate-hooks/make-descriptions.sh2
diff --git a/generate-hooks/make-descriptions.sh b/generate-hooks/make-descriptions.sh
index 49417f5..1a4ace4 100755
--- a/generate-hooks/make-descriptions.sh
+++ b/generate-hooks/make-descriptions.sh
@@ -11,7 +11,7 @@ for file in $(find "$1" -type f -name "*.html"); do
# remove the "p>" and "</p" from result
# make everything that starts with "<" blank
# take all lines that aren't blank
- description=$(egrep -o "p>(.+)<\/p" $file | sed "s/p>\|<\/p//g" | sed "s/<.*//g" | grep .)
+ description=$(egrep -o "p>[^&]([^&]+)<\/p" $file | sed "s/p>\|<\/p//g" | sed "s/<.*//g" | grep .)
# Get the first 200 characters only when it's longer than 200 characters
if [ ${#description} -gt 200 ]; then