Skip to content
Commits on Jun 23, 2016
  1. Merge pull request #77 from dorilla/bug/handle-whitespace

    Handle whitespace inside html
    committed on GitHub Jun 22, 2016
Commits on Jun 17, 2016
  1. @dorilla

    Handle whitespace inside html

    dorilla committed on GitHub Jun 17, 2016
Commits on Jun 4, 2016
  1. Merge pull request #75 from andrewgu12/andrewgu12-parseHTML-fix

    parseHTML broken
    committed Jun 4, 2016
Commits on Jun 3, 2016
  1. @andrewgu12

    parseHTML broken

    andrewgu12 committed Jun 3, 2016
Commits on Mar 9, 2015
  1. Merge pull request #59 from thebigape/patch-1

    Update trunk8.js
    committed Mar 9, 2015
  2. Merge pull request #58 from liborm85/master

    Fix for syntax error in regex
    committed Mar 9, 2015
Commits on Feb 22, 2015
  1. @thebigape

    Update trunk8.js

    Adding case insensitivity will allow for cases where someone has used <BR> vs <br>.
    thebigape committed Feb 22, 2015
  2. @liborm85

    fixed syntax error in regex

    liborm85 committed Feb 22, 2015
Commits on Feb 3, 2015
  1. Merge pull request #55 from kevinwuhoo/update-readme-settings

    Update documentation with parseHTML and onTruncate options
    committed Feb 3, 2015
  2. @kevinwuhoo
Commits on Nov 24, 2014
  1. Merge pull request #54 from psafx/master

    Use jQuery.trim() instead
    committed Nov 23, 2014
  2. @psafx

    Use jQuery.trim() instead

    psafx committed Nov 24, 2014
Commits on Oct 17, 2014
  1. Update version to 1.3.3

    committed Oct 17, 2014
Commits on Oct 2, 2014
  1. Merge pull request #52 from kfreytag/master

    Added onTruncate init parameter / success function
    committed Oct 1, 2014
  2. @kfreytag
  3. Merge pull request #31 from dillonforrest/master

    Trim extra whitespace when getting original text
    committed Oct 1, 2014
Commits on Oct 1, 2014
  1. @kfreytag

    Added onTruncate init parameter. onTruncate can be passed a function …

    …that
    
    will fire if trunk8 *does* actually truncate the text. If trunk8 *does not*
    truncate the text, the passed function will not fire.
    
    This is useful if the front-end needs to be modified / decorated in some
    custom manner when trunk8 successfully truncates text but left alone
    when there is no truncation.
    kfreytag committed Oct 1, 2014
Commits on Jun 24, 2014
  1. Merge pull request #47 from brwr/master

    fix(jquery-trunk8): Fix cross-browser compatibility issue with stripping HTML
    committed Jun 24, 2014
Commits on Jun 20, 2014
  1. fix(jquery-trunk8): Fix cross-browser compatibility issue with stripp…

    …ing HTML
    
    Internet Explorer introduced element.innerText a while back which retrieves the text from a DOM node. All other major browsers have agreed to use Node.textContent instead. While most of them also support element.innerText, Firefox does not.
    
    The trunk8 plugin for jQuery uses the check tmp.textContent || tmp.innerText to retrieve the text from a given node. This won't work in Firefox when `tmp` has no content -- specifically when `html` is an empty string -- because `tmp.textContent` returns `""` (an empty string, which is falsey in JavaScript) and `tmp.innerText` returns `undefined`. Because of JavaScript's short circuiting feature, the expression `tmp.textContent || tmp.innerText` then returns `undefined`. This caused an error in one code  which ultimately resulted in the page not rendering entirely.
    
    This fix checks to see whether the browser supports Node.textContent and, if so, returns `tmp.textContent`. Otherwise, return `tmp.innerText`.
    James Brewer committed Jun 20, 2014
Commits on Jul 20, 2013
  1. Merge pull request #29 from ztratar/master

    HTML Support for Trunk8
    committed Jul 20, 2013
Commits on Jul 19, 2013
  1. There were mixed tabs and spaces. Converted all to tabs

    Zach Tratar committed Jul 18, 2013
  2. Trunk8 fill is inserted either into the HTML element or outside of th…

    …e HTML element depending upon which type of HTML tag is presented
    Zach Tratar committed Jul 18, 2013
  3. Fixed ParseHTML to properly recognize special characters. Also fixed …

    …punctuation when it follows an HTML element.
    Zach Tratar committed Jul 18, 2013
Commits on Jun 27, 2013
  1. Trim original_text's extra whitespace.

    - Excessive newlines are still shown in tooltips, which made them look bad
    - So, I called $.trim right after getting the original html
    Dillon Forrest committed Jun 27, 2013
Commits on Jun 16, 2013
  1. Merge branch 'master' of https://github.com/ztratar/trunk8

    Zach Tratar committed Jun 15, 2013
  2. @ztratar
Commits on Jun 6, 2013
  1. @ztratar
  2. @ztratar
  3. @ztratar
Commits on Jun 5, 2013
  1. @ztratar

    Merge pull request #1 from apuntovanini/master

    Fixed splite undefined method
    ztratar committed Jun 5, 2013
  2. @apuntovanini
  3. @ztratar
Commits on Jun 4, 2013
  1. Merge pull request #28 from eljojo/master

    Show text rather than HTML when using the tooltip option.
    committed Jun 4, 2013
Commits on May 22, 2013
  1. @eljojo

    When using the tooltip option, showing the text part of the element,

    rather than the html part.
    
    It works so if we're shortening links, we don't see html as the tooltip.
    eljojo committed May 22, 2013
Commits on Mar 6, 2013
  1. Merge pull request #21 from jgoodall/master

    add component.json for use with bower
    committed Mar 5, 2013
Something went wrong with that request. Please try again.