changed set_guard_rule

- it can now take an optional boolean variable that determines whether
links should be stripped from the rendered HTML or not