wrong relative link safe_html transform

- same pull request as branch 2.x
- safe_html transform has to be called with 'assignment context' instead of 'display context'