---
name: "HTMLentities.lookupEntity"
section: "3kaya"
platform: "linux"
package: "kaya"
version: "0.4.4-6.2"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/HTMLentities.lookupEntity"
---

# HTMLentities.lookupEntity(3kaya)

Look up the character number for a named HTML entity

## NAME

HTMLentities::lookupEntity - Look up the character number for a named HTML entity

## SYNOPSIS

**Maybe\<Int\> lookupEntity(** *String name* **)**

## ARGUMENTS

**name** The entity name (for example **pound**  or **nbsp**  )

## DESCRIPTION

Return the character number for a named HTML entity, or **nothing**  if the name is not that of a HTML entity. This is mainly a helper function for the **XMLentities(3kaya)** module, though may occasionally be useful to call separately.

## AUTHORS

Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/

## LICENSE

The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.

## RELATED

**XMLentities.entityToLiteral (3kaya)**
