# get_navigable_strings

> **Function** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/document_transformers/beautiful_soup_transformer/get_navigable_strings)

Get all navigable strings from a BeautifulSoup element.

## Signature

```python
get_navigable_strings(
    element: Any,
    *,
    remove_comments: bool = False,
) -> Iterator[str]
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `element` | `Any` | Yes | A BeautifulSoup element. |
| `remove_comments` | `bool` | No | If set to True, the comments will be removed. (default: `False`) |

## Returns

`Iterator[str]`

A generator of strings.

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/a6a6079511ac8a5c1293337f88096b8641562e77/libs/community/langchain_community/document_transformers/beautiful_soup_transformer.py#L181)