hakyll-2.1: A simple static site generator library.

Text.Hakyll.Util

Description

Miscellaneous text manipulation functions.

Synopsis

Documentation

trim :: String -> StringSource

Trim a string (drop spaces, tabs and newlines at both sides).

stripHtml :: String -> StringSource

Strip html tags from the given string.

linkSource

Arguments

:: String

Link text.

-> String

Link destination.

-> String 

Make a HTML link.

 link "foo" "bar.html" == "<a href='bar.html'>foo</a>"