{ "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": "odoo11-addon-html-text", "package_url": "https://pypi.org/project/odoo11-addon-html-text/", "platform": "", "project_url": "https://pypi.org/project/odoo11-addon-html-text/", "project_urls": { "Homepage": "https://github.com/OCA/server-tools" }, "release_url": "https://pypi.org/project/odoo11-addon-html-text/11.0.1.0.2/", "requires_dist": [ "lxml", "odoo (<11.1dev,>=11.0a)" ], "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "summary": "Generate excerpts from any HTML field", "version": "11.0.1.0.2" }, "last_serial": 3972439, "releases": { "11.0.1.0.0": [ { "comment_text": "", "digests": { "md5": "e0aad450fa86af3bbc9dbb5396b846ae", "sha256": "df16d956ecc0d5ea083629bb5e04110f697043b0be77b51fff81486fa7f99b46" }, "downloads": -1, "filename": "odoo11_addon_html_text-11.0.1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e0aad450fa86af3bbc9dbb5396b846ae", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "size": 23095, "upload_time": "2018-03-10T05:30:22", "url": "https://files.pythonhosted.org/packages/6b/84/100a008659a5beb11672d8f17ee2dde9b74fd620329996ede694a0e606e8/odoo11_addon_html_text-11.0.1.0.0-py2.py3-none-any.whl" } ], "11.0.1.0.2": [ { "comment_text": "", "digests": { "md5": "cbe1b7f5095db8f7ed3ceb3d981dc285", "sha256": "0e9484960552193c3af026196732d8f81985574f583ab658957dc0384d7ced09" }, "downloads": -1, "filename": "odoo11_addon_html_text-11.0.1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "cbe1b7f5095db8f7ed3ceb3d981dc285", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "size": 23086, "upload_time": "2018-04-28T04:48:52", "url": "https://files.pythonhosted.org/packages/49/8d/41bbd3bf8b42957bb21ddfb49a714c06149dab2fec3321e7a5e095c1b099/odoo11_addon_html_text-11.0.1.0.2-py2.py3-none-any.whl" } ], "11.0.1.0.2.99.dev1": [ { "comment_text": "", "digests": { "md5": "07c469271f11606df3160d91502cb714", "sha256": "c408cba1c28f9a725962fa7bd6e48b3516e725f8fcde64555bed31e46f15045d" }, "downloads": -1, "filename": "odoo11_addon_html_text-11.0.1.0.2.99.dev1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "07c469271f11606df3160d91502cb714", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "size": 23680, "upload_time": "2018-06-18T04:52:14", "url": "https://files.pythonhosted.org/packages/08/12/8a03d750b5cd9ac804ad790f00547bae31a9db738acbf49e58c657a193d1/odoo11_addon_html_text-11.0.1.0.2.99.dev1-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cbe1b7f5095db8f7ed3ceb3d981dc285", "sha256": "0e9484960552193c3af026196732d8f81985574f583ab658957dc0384d7ced09" }, "downloads": -1, "filename": "odoo11_addon_html_text-11.0.1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "cbe1b7f5095db8f7ed3ceb3d981dc285", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "size": 23086, "upload_time": "2018-04-28T04:48:52", "url": "https://files.pythonhosted.org/packages/49/8d/41bbd3bf8b42957bb21ddfb49a714c06149dab2fec3321e7a5e095c1b099/odoo11_addon_html_text-11.0.1.0.2-py2.py3-none-any.whl" } ] }