Skip to content

placeholder do not escape double quotes #17170

@yuriyoung

Description

@yuriyoung

Package

filament/filament

Package Version

v3.3.34

Laravel Version

v12.2.0

Livewire Version

v3.6.4

PHP Version

PHP 8.4

Problem description

Image

Expected behavior

Present the raw string.

Steps to reproduce

public function form(Form $form): Form
    {
        return $form
            ->schema([

                Forms\Components\TextInput::make('array')
                    ->columnSpanFull()
                    ->hint('TextInput')
                    ->placeholder('Data in Array format: ["key" => "value", "foo" => "bar"]'),

                Forms\Components\Textarea::make('Json')
                    ->columnSpanFull()
                    ->hint('Textarea')
                    ->helperText('No escaped double quotes but single quotes are fine.')
                    ->placeholder('Meta data in JSON format: {\'key\': \'value\', \"foo\": \"bar\"}'),

                Forms\Components\RichEditor::make('description')
                    ->columnSpanFull()
                    ->hint('RichEditor')
                    ->helperText('Double quotes are fine.')
                    ->placeholder('Meta data in JSON format: {"key": "value", "foo": \"bar\"}'),
            ]);
    }

Reproduction repository (issue will be closed if this is not valid)

https://github.com/bakuon/filament-app

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    Todo

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions