{ "info": { "author": "Grupo ESOC Ingenier\u00eda de Servicios, Tecnativa, Onestein, 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" ], "description": ".. image:: https://img.shields.io/badge/license-AGPL--3-blue.png\n :target: https://www.gnu.org/licenses/agpl\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/11.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* Dennis Sluijk \n\nDo not contact contributors directly about support or help with technical issues.\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": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/OCA/server-tools", "keywords": "", "license": "AGPL-3", "maintainer": "", "maintainer_email": "", "name": "odoo12-addon-html-text", "package_url": "https://pypi.org/project/odoo12-addon-html-text/", "platform": "", "project_url": "https://pypi.org/project/odoo12-addon-html-text/", "project_urls": { "Homepage": "https://github.com/OCA/server-tools" }, "release_url": "https://pypi.org/project/odoo12-addon-html-text/12.0.1.0.0.99.dev4/", "requires_dist": [ "lxml", "odoo (<12.1dev,>=12.0a)" ], "requires_python": ">=3.5", "summary": "Generate excerpts from any HTML field", "version": "12.0.1.0.0.99.dev4" }, "last_serial": 5768910, "releases": { "12.0.1.0.0.99.dev1": [ { "comment_text": "", "digests": { "md5": "9ec7d2593f211f3473dca196cbdc27f1", "sha256": "297f3f622e980ff0b8f3878ad1a055a55d5397be8f494d2dc0404f1558ee4339" }, "downloads": -1, "filename": "odoo12_addon_html_text-12.0.1.0.0.99.dev1-py3-none-any.whl", "has_sig": false, "md5_digest": "9ec7d2593f211f3473dca196cbdc27f1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 21374, "upload_time": "2019-02-19T05:42:51", "url": "https://files.pythonhosted.org/packages/40/1d/b6de75fd0e44ba781b42bbbc3da8cd5721c8d1a3eeac0d19278b89d0e434/odoo12_addon_html_text-12.0.1.0.0.99.dev1-py3-none-any.whl" } ], "12.0.1.0.0.99.dev2": [ { "comment_text": "", "digests": { "md5": "799d5600dbe26f0b4017ae202e1d0561", "sha256": "8eeacdd82b9509f7cec89ea17863b9336e417a529ba741083702c44589efb107" }, "downloads": -1, "filename": "odoo12_addon_html_text-12.0.1.0.0.99.dev2-py3-none-any.whl", "has_sig": false, "md5_digest": "799d5600dbe26f0b4017ae202e1d0561", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 21445, "upload_time": "2019-03-04T05:45:12", "url": "https://files.pythonhosted.org/packages/14/63/828a0d81325e6eb3dcc5742ebbc2f0d182b372c7f61f190f8dafc7f00157/odoo12_addon_html_text-12.0.1.0.0.99.dev2-py3-none-any.whl" } ], "12.0.1.0.0.99.dev4": [ { "comment_text": "", "digests": { "md5": "fb3535cbdd4af18198db6235b17b079c", "sha256": "d2e5fb2b6f9a97444837d2de21616acb0d30af9fbe41865fd433a2ae1d953897" }, "downloads": -1, "filename": "odoo12_addon_html_text-12.0.1.0.0.99.dev4-py3-none-any.whl", "has_sig": false, "md5_digest": "fb3535cbdd4af18198db6235b17b079c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 22053, "upload_time": "2019-09-02T04:51:24", "url": "https://files.pythonhosted.org/packages/7a/8a/bec5a2e7d342063ad05943df122fb5b7e04ca703de86d4ce03a9aae75399/odoo12_addon_html_text-12.0.1.0.0.99.dev4-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fb3535cbdd4af18198db6235b17b079c", "sha256": "d2e5fb2b6f9a97444837d2de21616acb0d30af9fbe41865fd433a2ae1d953897" }, "downloads": -1, "filename": "odoo12_addon_html_text-12.0.1.0.0.99.dev4-py3-none-any.whl", "has_sig": false, "md5_digest": "fb3535cbdd4af18198db6235b17b079c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 22053, "upload_time": "2019-09-02T04:51:24", "url": "https://files.pythonhosted.org/packages/7a/8a/bec5a2e7d342063ad05943df122fb5b7e04ca703de86d4ce03a9aae75399/odoo12_addon_html_text-12.0.1.0.0.99.dev4-py3-none-any.whl" } ] }