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

Cuts tags #1

Closed
luminatee opened this issue Sep 23, 2014 · 5 comments
Closed

Cuts tags #1

luminatee opened this issue Sep 23, 2014 · 5 comments

Comments

@luminatee
Copy link

Hi. When I use Morphext for element, he cuts all html tags exept plain text. How I can disable it?

@luminatee luminatee changed the title Cutting tags Cuts tags Sep 23, 2014
@MrSaints
Copy link
Owner

Hi @luminatee, unfortunately, I made Morphext to serve as a simple text rotator. It is not meant for rotating content with HTML and I do not intend on implementing this in the near future.

You can however, modify the source so that it will not filter out HTML:

  1. https://github.com/MrSaints/Morphext/blob/master/dist/morphext.js#L41
  2. Replace text() with html()

Alternatively, you can look into another project of mine called Morphist. It is similar to Morphext except that it is slightly more advance and it can rotate HTML. It is meant to be used for rotating the children in a parent object (good for stuff like tweets).

Hope that helps.

Thanks.

@luminatee
Copy link
Author

Thanks for answer. I just set css rules for parent-node and all ok.

Good work man!

Regards, Alex.

@MrSaints
Copy link
Owner

Awesome. Let me know if you have any other problems.

Cheers.

@dangelion
Copy link

I just opened this issue #13

Have you implemented this feature? Like an option cutHtml:true/false ?

If not do you intend to do it or it's better I search for something else?

It makes sense to use Morphist in place of this, only because of the "html cut" problem?

@MrSaints
Copy link
Owner

@dangelion, as my previous post stated, I don't intend on implementing this for Morphext. It's meant to be simple. I strongly recommend you look into Morphist or consider forking this project, and making the appropriate changes I mentioned in #1 (comment) (i.e. text to html fn).

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

3 participants