Yes, $('<div/>') creates a new div element, same as new Element('div') in
MooTools.

So that code would be like:

finalText = new Element('div', {text: finalText}).get('html');


On Tue, Oct 2, 2012 at 3:16 PM, Hamburger <bilidi...@web.de> wrote:

> Hello,
> I need some help to translate jquery to mo.
> What is the $('<div/>') in
> finalText = $('<div/>').text(finalText).html();
> Does it create a div?
>
> the complete code is here:
> https://github.com/freqdec/slabText/blob/master/js/jquery.slabtext.js
> Line: 142
>
> thx in advance
>
>

Reply via email to