Refactor: use iterators
For #1694: configuration property

- output <a href="…"> when true (by default)
- output/filter placeholders <a> otherwise
- rename methods