# GetLabel(SearchContext, bool)

> Fetch and format label.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Search](/engine/6000.5/script-reference/unityeditor/search.md)
* **Assembly:** UnityEditor

```csharp
public string GetLabel(SearchContext context, bool stripHTML = false)
```

### Parameters

**** (\[SearchContext]\(/engine/6000.5/script-reference/unityeditor/search/searchcontext)): Any search context for the item search provider.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): True if any HTML tags should be dropped.

### Returns

| Type                                                           | Description            |
| -------------------------------------------------------------- | ---------------------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | The search item label. |
