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

It is removing image tag from html #12

Open
mayank-shaan opened this issue Nov 16, 2018 · 5 comments
Open

It is removing image tag from html #12

mayank-shaan opened this issue Nov 16, 2018 · 5 comments

Comments

@mayank-shaan
Copy link

No description provided.

@kavalcante
Copy link
Owner

Could you describe better your error and explain how reproduce the error? If is possible, use a website like jsfiddle.

@kavalcante
Copy link
Owner

I'm closing this issue doing to inactivity. If your error persist, please reopen with a reproduction explanation.

@ChristianLuxem
Copy link

ChristianLuxem commented Feb 20, 2019

@kavalcante it is really removing the image tag from HTML. You can try the following setup:

<truncate class="__object_summary" collapsed-text-class="collapsed" :clamp="More"
      :length="500" :less="Less" type="html"
      :text="object.summary"></truncate>

where object.summary is the following string:
'<p dir="ltr"><a href="Bild.jpg"><img src="Bild.jpg" alt="Bild"></a><br></p>'

@gbdematos
Copy link

I'm having the same issue.

@kavalcante kavalcante reopened this Sep 19, 2019
@dnewkerk
Copy link

This is due to the keepImageTag option of the html-trunctate dependency, which is false by default. There's currently no way to affect the html-truncate options through vue-truncate-collapsed. It might be a good solution to expose this option (as well as the ellipsis option) as props on vue-truncate-collapsed.

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

5 participants