Skip to content
This repository was archived by the owner on Feb 16, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: kaimallea/php-bbcode
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: putchi/php-bbcode
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 13 commits
  • 3 files changed
  • 1 contributor

Commits on Mar 2, 2015

  1. add some additional BBcode tags

        // Replace [br] with <br />
        $this->bbcode_table["/\[br\]/is"] = function ($match) {
          return "<br/>";
        };
    
        // Replace [p]...[/p] with <p>...</p>
        $this->bbcode_table["/\[p\](.*?)\[\/p\]/is"] = function ($match) {
          return "<p>$match[1]</p>";
        };
    putchi committed Mar 2, 2015
    Configuration menu
    Copy the full SHA
    4143a35 View commit details
    Browse the repository at this point in the history
  2. update to if ($escapeHTML)

    if $escapeHTML=true than
    it escapes [quote="person"]...[/quote] and doesn't render the new BBcode to hrml.
    added: ENT_NOQUOTES to render correctly the BBcode.
    putchi committed Mar 2, 2015
    Configuration menu
    Copy the full SHA
    c8c3d8e View commit details
    Browse the repository at this point in the history
  3. update to [youtube]...[/youtube] BBcode tag

    added additional BBcode tags and some alternatives.
    also updated to current "https" protocol.
    putchi committed Mar 2, 2015
    Configuration menu
    Copy the full SHA
    940527a View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2015

  1. added a function to close opened tags

    usage:
    $bbcode = new BBCode;
    
    $_str = [email=someone@somewhere.com]An e-mail link ;
    
     // will return: [email=someone@somewhere.com]An e-mail link[/email]
    $formated_BBcode = $bbcode->checkTag($_str);
    
    //will return: <a href="mailto:someone@somewhere.com">An e-mail link</a>
    $formated_html = $bbcode->toHTML($formated_BBcode);
    
    echo $formated_html;
    putchi committed Mar 4, 2015
    Configuration menu
    Copy the full SHA
    5a40046 View commit details
    Browse the repository at this point in the history
  2. some additional changes

    added additional tags
    putchi committed Mar 4, 2015
    Configuration menu
    Copy the full SHA
    1cb110d View commit details
    Browse the repository at this point in the history
  3. Update README.md

    putchi committed Mar 4, 2015
    Configuration menu
    Copy the full SHA
    6925c1c View commit details
    Browse the repository at this point in the history
  4. Update README.md

    putchi committed Mar 4, 2015
    Configuration menu
    Copy the full SHA
    c7bb272 View commit details
    Browse the repository at this point in the history
  5. Update README.md

    putchi committed Mar 4, 2015
    Configuration menu
    Copy the full SHA
    1d3f111 View commit details
    Browse the repository at this point in the history
  6. Update bbcode.php

    putchi committed Mar 4, 2015
    Configuration menu
    Copy the full SHA
    5e1d244 View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2015

  1. Update bbcode.php

    putchi committed Mar 5, 2015
    Configuration menu
    Copy the full SHA
    4f81555 View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2015

  1. added email eith subject tags

    putchi committed Mar 8, 2015
    Configuration menu
    Copy the full SHA
    3c50009 View commit details
    Browse the repository at this point in the history
  2. Update tests.php

    putchi committed Mar 8, 2015
    Configuration menu
    Copy the full SHA
    b940d98 View commit details
    Browse the repository at this point in the history
  3. Update README.md

    putchi committed Mar 8, 2015
    Configuration menu
    Copy the full SHA
    c349a16 View commit details
    Browse the repository at this point in the history
Loading