Skip to content

Instantly share code, notes, and snippets.

@imagehat
Created December 1, 2011 17:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imagehat/1418214 to your computer and use it in GitHub Desktop.
Save imagehat/1418214 to your computer and use it in GitHub Desktop.
EE snippet for appending read more link inside last closing html tag
{exp:low_replace
regex="yes"
find="(<\/(.*)>)(\s+)$"
replace="SPACE<a class='more' href='{title_permalink=bulletin}'>[read more]</a>$1"
}
{blog_excerpt}
{/exp:low_replace}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment