{"repo":"longbridge/html-pipeline","free":true,"listed":false,"github":"https://github.com/longbridge/html-pipeline","clone":"git clone https://github.com/longbridge/html-pipeline.git","description":"HTML processing filters and utilities in Go version","language":"Go","stars":24,"topics":["go","pipeline","html","html-processor","text-processor","markdown"],"license":"MIT","category":"data-pipelines","readme_excerpt":"HTML Pipeline for Go This is go version of html-pipeline Other versions - html-pipeline - Ruby - html-pipeline.cr - Crystal Usage https://play.golang.org/p/zB0T7KczdB4 Use for Plain Text case Sometimes, you may want use html-pipeline to manage the Plain Text process. For example: - Match mentions, and then send notifications. - Convert Mention / HashTag or other text into other format. But in HTML mode, it will escape some chars ( \" , ' , & ) ... We don't wants that. So, there have NewPlainPipeline method for you to create a plain mode pipeline without any escape. NOTE: For secruity, this pipeline will remove all HTML tags https://play.golang.org/p/vxKZU9jJi3u Built-in filters - SanitizationFilter - Use bluemonday default UGCPolicy to sanitize html - MarkdownFilter - Use blackfriday to covert Markdown to HTML. - MentionFilter - Match Mention or HashTag like Twitter. - HTMLEscapeFilter - HTML Escape for plain text. - SimpleFormatFilter - Format plain text for covert \\n\\n into paragraph, like Rails simple format. - AutoCorrectFilter - Use AutoCorrect to automatically add spaces between CJK and English words. - ImageProxyFilter - DEPRECATED A filter can match all img to replace src as proxy url with imageproxy. - ImageURLFilter - A filter can match img to replace with rules like (imageproxy, Ban URL, Thumb version ...). - ExternalLinkFilter a filter to match external links to add rel=\"nofollow\" , target=\" blank\" . License MIT License","default_branch":null,"files":null,"tree":[],"storefront":"/r/longbridge","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/longbridge/html-pipeline/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}