Skip to content

Text formatting library that supports BBCode, HTML and other markup via plugin. Handles emoticons, censors words, automatically embeds media and more.

License

Notifications You must be signed in to change notification settings

terabin/TextFormatter

 
 

Repository files navigation

Overview

s9e\TextFormatter is a text formatting library that supports BBCode, Markdown, HTML and other markup via plugins. The library is in PHP, with a JavaScript port also available for client-side preview (see below.)

Build Status Coverage Status HHVM Status Scrutinizer Quality Score Contact the author.

Installation

The best way to install s9e\TextFormatter is via Composer. See Installation.

composer require s9e/text-formatter

Demo

You can try the JavaScript version in this BBCodes + other stuff demo, or this Markdown + stuff (Fatdown) demo.

Examples

If you can only read one example, read how to use a bundle.

You can run the scripts directly from the examples directory, you can look into the manual for a description of each plugin and other examples.

About

Text formatting library that supports BBCode, HTML and other markup via plugin. Handles emoticons, censors words, automatically embeds media and more.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 94.0%
  • JavaScript 4.9%
  • Other 1.1%