{ "info": { "author": "Grupo ESOC Ingenier\u00eda de Servicios, Tecnativa, Odoo Community Association (OCA)", "author_email": "support@odoo-community.org", "bugtrack_url": null, "classifiers": [ "Framework :: Odoo", "License :: OSI Approved :: GNU Affero General Public License v3", "Programming Language :: Python :: 2.7" ], "description": ".. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg\n :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html\n :alt: License: AGPL-3\n\n====================\nText from HTML field\n====================\n\nThis module provides some technical features that allow to extract text from\nany chunk of HTML, without HTML tags or attributes. You can chose either:\n\n* To truncate the result by amount of words or characters.\n* To append an ellipsis (or any character(s)) at the end of the result.\n\nIt can be used to easily generate excerpts.\n\nUsage\n=====\n\nThis module just adds a technical utility, but nothing for the end user.\n\nIf you are a developer and need this utility for your module, see these\nexamples and read the docs inside the code.\n\nPython example::\n\n @api.multi\n def some_method(self):\n # Get truncated text from an HTML field. It will 40 words and 100\n # characters at most, and will have \"...\" appended at the end if it\n # gets truncated.\n truncated_text = self.env[\"ir.fields.converter\"].text_from_html(\n self.html_field, 40, 100, \"...\")\n\nQWeb example::\n\n \n\n.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas\n :alt: Try me on Runbot\n :target: https://runbot.odoo-community.org/runbot/149/10.0\n\nKnown issues / Roadmap\n======================\n\n* An option could be added to try to respect the basic HTML tags inside the\n excerpt (````, ````, ``

``, etc.).\n\nBug Tracker\n===========\n\nBugs are tracked on `GitHub Issues\n`_. In case of trouble, please\ncheck there if your issue has already been reported. If you spotted it first,\nhelp us smashing it by providing a detailed and welcomed feedback.\n\nCredits\n=======\n\nContributors\n------------\n\n* Jairo Llopis \n* Vicent Cubells \n\nMaintainer\n----------\n\n.. image:: https://odoo-community.org/logo.png\n :alt: Odoo Community Association\n :target: https://odoo-community.org\n\nThis module is maintained by the OCA.\n\nOCA, or the Odoo Community Association, is a nonprofit organization whose\nmission is to support the collaborative development of Odoo features and\npromote its widespread use.\n\nTo contribute to this module, please visit https://odoo-community.org.\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://tecnativa.com", "keywords": "", "license": "AGPL-3", "maintainer": "", "maintainer_email": "", "name": "odoo10-addon-html-text", "package_url": "https://pypi.org/project/odoo10-addon-html-text/", "platform": "", "project_url": "https://pypi.org/project/odoo10-addon-html-text/", "project_urls": { "Homepage": "https://tecnativa.com" }, "release_url": "https://pypi.org/project/odoo10-addon-html-text/10.0.1.0.0/", "requires_dist": [ "lxml.html", "odoo (<10.1dev,>=10.0)" ], "requires_python": "", "summary": "Generate excerpts from any HTML field", "version": "10.0.1.0.0" }, "last_serial": 5083069, "releases": { "10.0.1.0.0": [ { "comment_text": "", "digests": { "md5": "939c6b9a5d13eec366af5bca23e23761", "sha256": "605ecc5b668eb9ac5794dae6aef46cf7e7ae05f008e556e48b12c289ceacc7cf" }, "downloads": -1, "filename": "odoo10_addon_html_text-10.0.1.0.0-py2-none-any.whl", "has_sig": false, "md5_digest": "939c6b9a5d13eec366af5bca23e23761", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 23211, "upload_time": "2017-07-18T04:30:08", "url": "https://files.pythonhosted.org/packages/d4/d5/2333e9a7b1ffe835d11b79ee76cd242daa4fdab4a15ae93b6aac26bcc9af/odoo10_addon_html_text-10.0.1.0.0-py2-none-any.whl" } ], "10.0.1.0.0.99.dev1": [ { "comment_text": "", "digests": { "md5": "7c4673b3be6c84d87196176d9fd3e228", "sha256": "9c56cfb6689df52d3cd185253b7a20e0697c527e6b5de1dad1ff4cc86aca97a2" }, "downloads": -1, "filename": "odoo10_addon_html_text-10.0.1.0.0.99.dev1-py2-none-any.whl", "has_sig": false, "md5_digest": "7c4673b3be6c84d87196176d9fd3e228", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": "~=2.7", "size": 23980, "upload_time": "2018-01-17T05:31:34", "url": "https://files.pythonhosted.org/packages/5f/d7/7e56c0e7edc21ff4adf67833e419f9f6e474c33cfce4bdcdf315d3997451/odoo10_addon_html_text-10.0.1.0.0.99.dev1-py2-none-any.whl" } ], "10.0.1.0.0.99.dev2": [ { "comment_text": "", "digests": { "md5": "d1cf25fb6d7accfd8c54e87df0fe484a", "sha256": "5777d305ba8be09ceaa93b989f1263010c3d79992b26b2df61d96e5d287b8257" }, "downloads": -1, "filename": "odoo10_addon_html_text-10.0.1.0.0.99.dev2-py2-none-any.whl", "has_sig": false, "md5_digest": "d1cf25fb6d7accfd8c54e87df0fe484a", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": "~=2.7", "size": 24626, "upload_time": "2018-03-04T05:33:46", "url": "https://files.pythonhosted.org/packages/4a/e7/51baa8997145aa2ccc8deaf67dc3b209d9ee6653ac6c8cc1d10f6ba6cbc2/odoo10_addon_html_text-10.0.1.0.0.99.dev2-py2-none-any.whl" } ], "10.0.1.0.0.99.dev3": [ { "comment_text": "", "digests": { "md5": "a1d3963efea6ae6645fc659e6995b54f", "sha256": "4c5f93d2bea633ebf3b1a64239dbf922a7af3a0432244a1473b50c0370f9a2f5" }, "downloads": -1, "filename": "odoo10_addon_html_text-10.0.1.0.0.99.dev3-py2-none-any.whl", "has_sig": false, "md5_digest": "a1d3963efea6ae6645fc659e6995b54f", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": "~=2.7", "size": 25102, "upload_time": "2018-06-25T04:38:46", "url": "https://files.pythonhosted.org/packages/3d/9a/a1596541a1049735cbb69f89b943eb852f345a500ea13098998e21699bcd/odoo10_addon_html_text-10.0.1.0.0.99.dev3-py2-none-any.whl" } ], "10.0.1.0.0.99.dev4": [ { "comment_text": "", "digests": { "md5": "2915d2afd872b005a66597612fbe9bfc", "sha256": "ea2cbb332e47a5a9da89e8f3056a504c27df7c95f0476e87a25c777225a6b203" }, "downloads": -1, "filename": "odoo10_addon_html_text-10.0.1.0.0.99.dev4-py2-none-any.whl", "has_sig": false, "md5_digest": "2915d2afd872b005a66597612fbe9bfc", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": "~=2.7", "size": 22864, "upload_time": "2019-04-03T04:55:18", "url": "https://files.pythonhosted.org/packages/c1/f5/3e383b304f832b72290bbc9dab22bfa5e64c0f7602e0effcf1ca14cb656c/odoo10_addon_html_text-10.0.1.0.0.99.dev4-py2-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "939c6b9a5d13eec366af5bca23e23761", "sha256": "605ecc5b668eb9ac5794dae6aef46cf7e7ae05f008e556e48b12c289ceacc7cf" }, "downloads": -1, "filename": "odoo10_addon_html_text-10.0.1.0.0-py2-none-any.whl", "has_sig": false, "md5_digest": "939c6b9a5d13eec366af5bca23e23761", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 23211, "upload_time": "2017-07-18T04:30:08", "url": "https://files.pythonhosted.org/packages/d4/d5/2333e9a7b1ffe835d11b79ee76cd242daa4fdab4a15ae93b6aac26bcc9af/odoo10_addon_html_text-10.0.1.0.0-py2-none-any.whl" } ] }