Omeka Classic Logo
  • What’s new in Omeka
  • Tutorials
  • Reference
    • Global (Theming) Functions
    • Hooks
    • Filters
    • models
    • views/helpers
    • controllers
    • Packages
      • Acl
      • Application
      • Auth
      • Captcha
      • Controller
      • Db
      • File\Derivative
      • Filter
      • Form
      • Global Functions
        • Db-related functions
        • Locale-related functions
        • Log-related functions
        • Plugin-related functions
        • Search-related functions
        • Text-related functions
        • User-related functions
        • Utility-related functions
        • View-related functions
      • Http
      • Install
      • Job
      • Navigation
      • Output
      • Plugin
      • Record
      • Session
      • Storage
      • Test
      • Validate
      • View
    • libraries/Omeka
    • Omeka REST API
  • Helping With Documentation
  • Registering a new module or theme with omeka.org
Omeka Classic
  • Reference
  • Global (Theming) Functions
  • Global Functions
  • Text-related functions
  • View page source

Text-related functions

Up to Global Functions

  • html_escape — Escape a value to display properly as HTML.
  • js_escape — Escape a value for use in javascript.
  • snippet — Return a substring of a given piece of text.
  • snippet_by_word_count — Return a substring of the text by limiting the word count.
  • strip_formatting — Strip HTML tags from a string.
  • text_to_id — Convert a word or phrase to a valid HTML ID.
  • text_to_paragraphs — Replace newlines in a block of text with paragraph tags.
  • url_to_link — Convert any URLs in a given string to links.
  • url_to_link_callback — Callback for converting URLs with url_to_link.
  • xml_escape — Escape a value for use in XML.
Previous Next

© Copyright 2012-2023, Omeka.

Built with Sphinx using a theme provided by Read the Docs.