You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to convert HTML to plain text within a Kramdown plugin I'm making and I'm unable to get HTML entities decoded no matter what I do. Here's one of many things I've tried:
html="<h1>& > <</h1>"doc=Kramdown::Document.new(html,input: :html,entity_output: :as_char)putsdoc.to_kramdown# Outputs: # & > <
I expected the output to be # & > < and not # & > <. What am I doing wrong here?
The text was updated successfully, but these errors were encountered:
I'm open to pull requests that adjust this behaviour in the kramdown converter, the used utility function should not be changed because it is used in several places.
I want to convert HTML to plain text within a Kramdown plugin I'm making and I'm unable to get HTML entities decoded no matter what I do. Here's one of many things I've tried:
I expected the output to be
# & > <
and not# & > <
. What am I doing wrong here?The text was updated successfully, but these errors were encountered: