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

img src processed to empty #280

Open
wcnjeusr opened this issue Apr 17, 2023 · 2 comments
Open

img src processed to empty #280

wcnjeusr opened this issue Apr 17, 2023 · 2 comments

Comments

@wcnjeusr
Copy link

<img src="test.png"> processed result is <img src>

@Kolobok12309
Copy link

Kolobok12309 commented May 25, 2023

If you make path absolute <img src="/test.png"> or with protocol it worked <img src="http://example.com/text.png">

But it not worked for blobs for example <img src="blob:http://localhost:3000/396578e2-1e38-450a-a947-deb08d786d2d"> #264

@wcnjeusr
Copy link
Author

wcnjeusr commented Jun 9, 2023

use onTagAttr temporaryly solved this, example:
onTagAttr: function(tag, name, value, isWhiteAttr) { if (tag === 'img' && name === 'src') { if (value.indexOf('"') === -1) { return ${name}="${value}" } } }

@wcnjeusr wcnjeusr closed this as completed Jun 9, 2023
@wcnjeusr wcnjeusr reopened this Jun 9, 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

No branches or pull requests

2 participants