---
title: "Deprecation: #88428 - top.rawurlencode and top.str_replace"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:deprecation-88428"
source: "Changelog/10.0/Deprecation-88428-ToprawurlencodeAndTopstr_replace.rst"
modified: "2026-09-15T10:46:36+00:00"
---

# Deprecation: #88428 - top.rawurlencode and top.str_replace

See [forge#88428](https://forge.typo3.org/issues/88428)

## Description

The global JavaScript functions `top.rawurlencode()` and `top.str_replace()` have been marked as deprecated.

## Impact

Calling any of these two functions will trigger a deprecation log entry in the browser's console.

## Affected Installations

All installations using third party extensions with these functions are affected.

## Migration

For `top.rawurlencode()` it's safe to use native JavaScript function `encodeURIComponent()` instead. The only
difference is that this function does not escape asterisk characters, which may be additionally achieved via
`encodeURIComponent('*my_string*').replace(/\*/g, '%2A')`.

For `top.str_replace()` consider using JavaScript's string function `.replace()` instead.
