html_safe in pdf prawn

If you want to show a text with all html formatting html_safe doesn’t work but this line of code

ActionView::Base.full_sanitizer.sanitize(@string)