Skip to content

Split a single string into several paragraphs by a given character.

Notifications You must be signed in to change notification settings

sachalifs/paragraphs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

paragraphs

Split a single string into several paragraphs by a given character.

Installation

Install with component(1):

$ component install slifszyc/paragraphs

API

p#split(text, [character])

Used to split the given text into several paragraphs using the character as paragraph separator

p.split('hello\nworld!', "\n") // returns "<p>hello</p><p>world!</p>"

License

MIT

About

Split a single string into several paragraphs by a given character.

Resources

Stars

Watchers

Forks

Packages

No packages published