8000 Upgrade tdewolff/parse by lvwxx · Pull Request #9 · longbridge/autocorrect · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Upgrade tdewolff/parse #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 8, 2023

Conversation

lvwxx
Copy link
Contributor
@lvwxx lvwxx commented Feb 8, 2023

No description provided.

@lvwxx lvwxx requested a review from huacnlee February 8, 2023 11:18
@@ -31,8 +32,9 @@ func UnformatHTML(body string, options ...UnformatOption) (out string, err error

func processHTML(body string, fn func(plainText string) string) (out string, err error) {
w := &bytes.Buffer{}
lex := html.NewLexer(strings.NewReader(body))
defer lex.Restore()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Restore 不需要了哇?

@huacnlee huacnlee merged commit 3ffb0bb into longbridge:main Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0