Question: Bit of a strange one.

I have put a script in the miscellaneous scripts section in
**Configuration->General->Design**, but it is not showing when I look at the page source. I have tried putting `<script>code here</script>` and just plain text, such as 12345, but when I refresh the website, it does not show in the page source.

I have refreshed caches through Magento admin etc. but it still just does not update. Tried logging out and back in, same thing. The text I enter shows in the database, so it is getting saved back, but just not showing on frontend.

Any ideas?

Answer: 
I couldn't reproduce your error, but I got an other one. 

Then I did some minor adjustments to your code and it worked.  

First drop the `InstallSchema.php` file. It does nothing so it is useless. 

Then make sure that your plugin file is in `Amaj/CorePlugin/Model/Currency/Plugin.php` and it looks like this:

```
<?php

namespace Amaj\CorePlugin\Model\Currency;

class Plugin
{
    protected $logger;

    public function __construct(\Psr\Log\LoggerInterface $logger) {
        $this->logger = $logger;
    }

    /**
     * @param $subject
     * @param \Closure $proceed
     * @param $price
     * @param array $options
     * @return string
     */
    public function aroundFormatTxt(
        $subject,
        \Closure $proceed,
        $price,
        $options = []
    )
    {
        $this->logger->info('Amaj aroundFormatTxt');
        return '2';
    }

}

```

you don't need `parent::__construct();` in the constructor because there is no parent class.  

And I replaced `$logger->info` with `$this->logger->info` because there is no `$logger` variable.
For the purpose of example, i have added below code and it is working fine.
Check this approach may be this can be helpful.

Your model(result.php) is not in correct place.

\magento\vendor\magento\module-contact\etc\frontend\di.xml

```
<?xml version="1.0"?>
<!--
/**
 * Copyright © 2016 Magento. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Magento\Framework\Url\SecurityInfo">
        <arguments>
            <argument name="secureUrlList" xsi:type="array">
                <item name="contact" xsi:type="string">/contact/</item>
            </argument>
        </arguments>
    </type>
    <type name="Magento\Directory\Model\Currency">
        <plugin name="amaj-core-plugin-currency" type="Magento\Contact\Model\Plugin" sortOrder="10" disabled="false" />
    </type>
</config>

```

\magento\vendor\magento\module-contact\Model\Plugin.php

```
<?php
/**
 * Copyright © 2016 Magento. All rights reserved.
 * See COPYING.txt for license details.
 */
namespace Magento\Contact\Model;

class Plugin
{
    /**
     * @param float $price
     * @param array $options
     * @return string
     */
    public function aroundFormatTxt()
    {
        echo "fffffffffffff";
        exit;
    }
}

```

> 
> Note : Not recommended to edit core module, i showed this for just
>  test purpose.
> 
> 
>