Skip to content
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

Strip markdown? #861

Open
ve3 opened this issue Jan 11, 2024 · 0 comments
Open

Strip markdown? #861

ve3 opened this issue Jan 11, 2024 · 0 comments

Comments

@ve3
Copy link

ve3 commented Jan 11, 2024

Do you have plan to implement strip markdown?

Use case:

Example that I have this string.

Hello **world**, do not `escape()` to the moon.<br>
End

With ParseDown, I can convert this markdown syntax to HTML in normal contents display part. But in some part such as HTML attribute or excerpt, I just want to strip all markdown to be like this.

Hello world, do not escape() to the moon.<br>
End

It's okay to strip just markdown and leave HTML to PHP strip_tags() function task.
So that I can strip markdown and HTML and put in HTML attribute or excerpt part like this.

<div id="post-12345" title="Hello world, do not escape() to the moon.End">...</div>
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

No branches or pull requests

1 participant